KVM: VMX: Move common fields of struct vcpu_{vmx,tdx} to a struct
authorBinbin Wu <binbin.wu@linux.intel.com>
Fri, 14 Mar 2025 18:06:48 +0000 (14:06 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:54 +0000 (14:20 -0400)
commit7172c753c26a51c2e2bce922f0c94b62cb2ade46
tree780bf59911f85748e952f157c8e20d7d343eafb6
parent69e23faf82b4e7efe3581f9055a9c29d8d6ff9af
KVM: VMX: Move common fields of struct vcpu_{vmx,tdx} to a struct

Move common fields of struct vcpu_vmx and struct vcpu_tdx to struct
vcpu_vt, to share the code between VMX/TDX as much as possible and to make
TDX exit handling more VMX like.

No functional change intended.

[Adrian: move code that depends on struct vcpu_vmx back to vmx.h]

Suggested-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/Z1suNzg2Or743a7e@google.com
Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Message-ID: <20250129095902.16391-5-adrian.hunter@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/common.h
arch/x86/kvm/vmx/main.c
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/posted_intr.c
arch/x86/kvm/vmx/tdx.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h