[PATCH 0/4] KVM: x86: small MMU-adjacent cleanups

From: Paolo Bonzini

Date: Wed May 27 2026 - 08:07:31 EST


The non-MMU changes/preliminary cleanups from my "separate kvm_mmu"
series; fixed, test, and extracted for inclusion in 7.2. The rest of
the series can be included later.

The meat here is in patches 2 and 3, which prepare for having a single
copy of the PDPTRs (in vcpu->arch) instead of two (in root_mmu and
nested_mmu). Please take your time to appreciate nested virtualization
as an endless source of en{joy,ploy}ment.

Thanks,

Paolo

Paolo Bonzini (4):
KVM: x86: remove nested_mmu from mmu_is_nested()
KVM: nVMX: remove unnecessary code in prepare_vmcs02
KVM: nSVM: invalidate cached PDPTRs across nested NPT transitions
KVM: x86: check that kvm_handle_invpcid is only invoked with shadow
paging

arch/x86/kvm/kvm_cache_regs.h | 8 ++++++++
arch/x86/kvm/svm/nested.c | 27 ++++++++++++++++++---------
arch/x86/kvm/vmx/nested.c | 13 -------------
arch/x86/kvm/x86.c | 3 +++
arch/x86/kvm/x86.h | 2 +-
5 files changed, 30 insertions(+), 23 deletions(-)

--
2.52.0