]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: TDX: Move TDX hardware setup from main.c to tdx.c
authorSean Christopherson <seanjc@google.com>
Fri, 23 May 2025 00:11:35 +0000 (17:11 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:11:16 +0000 (13:11 -0700)
commit1f287a4e7b90595718167f93f850f0a08484ec81
tree1190dd77bf930d2ab25fbef62e023b8f3dc41f87
parentffced89220502faab44ca61e23e6196d09f5f2d4
KVM: TDX: Move TDX hardware setup from main.c to tdx.c

Move TDX hardware setup to tdx.c, as the code is obviously TDX specific,
co-locating the setup with tdx_bringup() makes it easier to see and
document the success_disable_tdx "error" path, and configuring the TDX
specific hooks in tdx.c reduces the number of globally visible TDX symbols.

Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20250523001138.3182794-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/main.c
arch/x86/kvm/vmx/tdx.c
arch/x86/kvm/vmx/tdx.h
arch/x86/kvm/vmx/x86_ops.h