]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/virt/tdx: allocate tdx_sys_info in static memory
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Jan 2025 11:00:28 +0000 (06:00 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:49 +0000 (14:20 -0400)
commit7ba2fd80ee43e34f5e5c449e5e26538c44bbf52e
tree1de1388b17c6a2c0dc630d41d64df6d96dfa680e
parente465cc63db1956f41370099c8ba0a62cf4f65990
x86/virt/tdx: allocate tdx_sys_info in static memory

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.

Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/virt/vmx/tdx/tdx.c