lkml.org 
[lkml]   [2022]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v7 11/20] x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions
    Date
    On Mon, 2022-11-28 at 14:19 -0800, Dave Hansen wrote:
    > On 11/28/22 14:13, Huang, Kai wrote:
    > > Apologize I am not entirely sure whether I fully got your point. Do you mean
    > > something like below?
    > ...
    >
    > No, something like this:
    >
    > static int init_tdx_module(void)
    > {
    > static struct tdsysinfo_struct tdx_sysinfo; /* too rotund for the stack */
    > ...
    > tdx_get_sysinfo(&tdx_sysinfo, ...);
    > ...
    >
    > But, also, seriously, 3k on the stack is *fine* if you can shut up the
    > warnings. This isn't going to be a deep call stack to begin with.
    >

    Let me try to find out whether it is possible to silent the warning. If I
    cannot, then I'll use your above way. Thanks!
    \
     
     \ /
      Last update: 2022-11-28 23:51    [W:4.437 / U:0.820 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site