mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] KVM: x86: small MMU-adjacent cleanups
@ 2026-05-30 16:55 Paolo Bonzini
  2026-05-30 16:55 ` [PATCH v2 1/5] KVM: x86: remove nested_mmu from mmu_is_nested() Paolo Bonzini
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Paolo Bonzini @ 2026-05-30 16:55 UTC (permalink / raw)
  To: linux-kernel, kvm; +Cc: seanjc

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).  This is then done in the last patch.

I have redone the nVMX patch now that Sean pointed out that the duplicate
write was a rebase goof.  I kept the nSVM one as is though.

v1->v2:
- rewritten "KVM: nVMX: remove unnecessary code in prepare_vmcs02_rare"
- added "KVM: x86/mmu: move pdptrs out of the MMU"

Thanks,

Paolo

Paolo Bonzini (5):
  KVM: x86: remove nested_mmu from mmu_is_nested()
  KVM: nVMX: remove unnecessary code in prepare_vmcs02_rare
  KVM: nSVM: invalidate cached PDPTRs across nested NPT transitions
  KVM: x86: check that kvm_handle_invpcid is only invoked with shadow
    paging
  KVM: x86/mmu: move pdptrs out of the MMU

 arch/x86/include/asm/kvm_host.h |  5 ++---
 arch/x86/kvm/kvm_cache_regs.h   | 12 ++++++++++--
 arch/x86/kvm/svm/nested.c       | 27 ++++++++++++++++++---------
 arch/x86/kvm/svm/svm.c          |  2 +-
 arch/x86/kvm/vmx/nested.c       | 11 -----------
 arch/x86/kvm/vmx/vmx.c          | 20 ++++++++------------
 arch/x86/kvm/x86.c              |  9 ++++++---
 arch/x86/kvm/x86.h              |  2 +-
 8 files changed, 46 insertions(+), 42 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-12  8:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 16:55 [PATCH v2 0/5] KVM: x86: small MMU-adjacent cleanups Paolo Bonzini
2026-05-30 16:55 ` [PATCH v2 1/5] KVM: x86: remove nested_mmu from mmu_is_nested() Paolo Bonzini
2026-05-30 16:55 ` [PATCH v2 2/5] KVM: nVMX: remove unnecessary code in prepare_vmcs02_rare Paolo Bonzini
2026-05-30 16:55 ` [PATCH v2 3/5] KVM: nSVM: invalidate cached PDPTRs across nested NPT transitions Paolo Bonzini
2026-05-30 16:55 ` [PATCH v2 4/5] KVM: x86: check that kvm_handle_invpcid is only invoked with shadow paging Paolo Bonzini
2026-05-30 16:55 ` [PATCH v2 5/5] KVM: x86/mmu: move pdptrs out of the MMU Paolo Bonzini
2026-06-12  8:47 ` [PATCH v2 0/5] KVM: x86: small MMU-adjacent cleanups Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®