Re: [PATCH v2 0/3] x86/cpuid: KVM: TDX CPUID fixes

From: Sean Christopherson

Date: Fri Nov 13 2026 - 11:14:11 EST


On Thu, 22 Oct 2026 14:01:31 -0700, Sean Christopherson wrote:
> Boris or Dave, can you grab patch 1 for 7.4, ideally sooner than later? That
> would avoid having to carry a stable topic branch for a trivial change.
>
> Annotate CPUID entries that have a significant index when reporting TDX
> capabilities to userspace, and enforce that userspace honors significant
> indices to avoid creating a misconfiguring between KVM and the TDX Module,
> which in the worst case scenario could lead to host state getting clobbered.
>
> [...]

Applied 2 and 3 to kvm-x86 vmx. Thanks Boris for fast-tracking the CPUID change!

[1/3] x86/cpuid: Mark CPUID function 0x23 as being indexed
[already upstream as 108775fa28fe04a16f19a828a779689f3d0ea9f0]
[2/3] KVM: TDX: Set SIGNIFCANT_INDEX flag as appropriate when filling CPUID entries
https://github.com/kvm-x86/linux/commit/bfce14e80e89
[3/3] KVM: TDX: Reject KVM_TDX_INIT_VM if indexed CPUID functions don't match
https://github.com/kvm-x86/linux/commit/c576a80cfc4e

--
https://github.com/kvm-x86/linux/tree/next