Re: [PATCH v3 6/8] KVM: VMX: Use dummy pseudo-overlay struct for to_vt() and vt_to_vcpu()
From: Binbin Wu
Date: Thu Sep 03 2026 - 22:54:38 EST
On 9/4/2026 9:03 AM, Sean Christopherson wrote:
> Define a combined vcpu_vmx_tdx structure to represent the common layout of
> vcpu_vmx and vcpu_tdx, instead of having vcpu_tdx piggyback vcpu_vmx. I.e.
> require VMX and TDX to match the common definition, not for TDX to match
> VMX. This will allow moving to_vt() and vt_to_vcpu() to common.h where
> they belong.
>
> No functional change intended.
>
> Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
> Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>
> Tested-by: Kai Huang <kai.huang@xxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>