Re: [PATCH v3 11/16] KVM: x86/tdx: Do VMXON and TDX-Module initialization during subsys init
From: Dave Hansen
Date: Thu Feb 26 2026 - 17:35:32 EST
On 2/13/26 17:26, Sean Christopherson wrote:
> Now that VMXON can be done without bouncing through KVM, do TDX-Module
> initialization during subsys init (specifically before module_init() so
> that it runs before KVM when both are built-in). Aside from the obvious
> benefits of separating core TDX code from KVM, this will allow tagging a
> pile of TDX functions and globals as being __init and __ro_after_init.
...
> Documentation/arch/x86/tdx.rst | 36 +------
> arch/x86/include/asm/tdx.h | 4 -
> arch/x86/kvm/vmx/tdx.c | 148 ++++++-----------------------
> arch/x86/virt/vmx/tdx/tdx.c | 168 +++++++++++++++++++--------------
> arch/x86/virt/vmx/tdx/tdx.h | 8 --
> 5 files changed, 130 insertions(+), 234 deletions(-)
It's hard to argue with a diffstat like that.
Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>