Re: [PATCH v3 0/3] KVM: VMX: Explicitly track TDX VMs' root level

From: Sean Christopherson

Date: Mon Sep 21 2026 - 11:06:02 EST


On Wed, 02 Sep 2026 16:09:29 -0700, Sean Christopherson wrote:
> Fix a bug where a misbehaving (or niave?) userspace can configure guest CPUID
> such that KVM will use the "wrong" root level for its mirror EPTs and trip the
> KVM_BUG_ON() in tdx_load_mmu_pgd().
>
> v3:
> - Use kvm_mmu_get_max_tdp_level() in __kvm_mmu_create() to avoid what is
> effectively a false positive WARN. [Sashiko]
>
> [...]

Applied to kvm-x86 misc, thanks!

[1/3] KVM: x86/mmu: Use KVM's max TDP level to determine need for 32-bit TDP root
https://github.com/kvm-x86/linux/commit/7ed619909773
[2/3] KVM: VMX: Explicitly track TDX VMs' root level instead of guessing it from CPUID
https://github.com/kvm-x86/linux/commit/cc8a8f2a90b4
[3/3] KVM: VMX: Drop TDX_SHARED_BIT_PWL_{4,5} and dedup related code
https://github.com/kvm-x86/linux/commit/37e3197c50c8

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