Re: [PATCH v11 08/20] x86/virt/tdx: Get information about TDX module and TDX-capable memory

From: Dave Hansen
Date: Thu Jun 08 2023 - 09:15:45 EST


On 6/8/23 04:41, kirill.shutemov@xxxxxxxxxxxxxxx wrote:
> These structures take 1.5K of memory and the memory will be allocated for
> all machines that boots the kernel with TDX enabled, regardless if the
> machine has TDX or not. It seems very wasteful to me.

Actually, those variables are in .bss. They're allocated forever for
anyone that runs a kernel that has TDX support.