Re: [PATCH v2 0/8] KVM: VMX: Harden against interpreting TDX vCPU as vcpu_vmx
From: Huang, Kai
Date: Wed Aug 26 2026 - 22:53:46 EST
On Wed, 2026-08-26 at 10:12 -0700, Sean Christopherson wrote:
> Move and rename "all" (read: everything I could find) common helpers out of
> vmx.c and/or replace their vmx_ prefix with vt_, and then poison to_vmx() for
> all common .c files to harden KVM against misinterpreting a TDX vCPU as a VMX
> vCPU, i.e. consuming to_vmx() on a TDX vCPU. Spotted when working through
> the bus lock series.
>
> As with v1, the TDX changes are compile-tested only.
Sanity tested creating/destroying/short-running both VMX and TDX guests worked
fine on one GNR machine. For this series:
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>
Tested-by: Kai Huang <kai.huang@xxxxxxxxx>