Re: [PATCH 07/30] x86/virt/tdx: allocate tdx_sys_info in static memory

From: Edgecombe, Rick P
Date: Thu Feb 20 2025 - 18:37:42 EST


On Thu, 2025-02-20 at 12:05 -0500, Paolo Bonzini wrote:
> Adding all the information that KVM needs increases the size of struct
> tdx_sys_info, to the point that you can get warnings about the stack
> size of init_tdx_module().  Since KVM also needs to read the TDX metadata
> after init_tdx_module() returns, make the variable a global.
>
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

It looks like the same code just lifted and moved earlier out of the already
acked patch.

Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>