Skip to content

KVM: x86: nVMX: Nested PML bug fix and cleanup

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks (patch 1 for 5.8).

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: nVMX: Plumb L2 GPA through to PML emulationarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +2 more+11 -100 replies
2/4KVM: x86/mmu: Drop kvm_arch_write_log_dirty() wrapperarch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+1 -170 replies
3/4KVM: nVMX: WARN if PML emulation helper is invoked outside of nested guestarch/x86/kvm/vmx/vmx.c+23 -220 replies
4/4KVM: x86/mmu: Make .write_log_dirty a nested operationarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/paging_tmpl.h arch/x86/kvm/vmx/nested.c +1 more+40 -401 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: x86: nVMX: Nested PML bug fix and cleanup

Fix for a theoretical bug in nested PML emulation, and additional clean up of the related code.

Tested by doing a few rounds of intra-VM migration (same L1) of an L2 guest with PML confirmed enabled in L1.

This has a trivial conflict with patch 3 of the MMU files series[*], both remove function prototypes from mmu.h.

[*] https://lkml.kernel.org/r/[email protected]

Sean Christopherson (4):
KVM: nVMX: Plumb L2 GPA through to PML emulation
KVM: x86/mmu: Drop kvm_arch_write_log_dirty() wrapper
KVM: nVMX: WARN if PML emulation helper is invoked outside of nested
guest
KVM: x86/mmu: Make .write_log_dirty a nested operation

 arch/x86/include/asm/kvm_host.h |  2 +-
 arch/x86/kvm/mmu.h              |  1 -
 arch/x86/kvm/mmu/mmu.c          | 15 -------------
 arch/x86/kvm/mmu/paging_tmpl.h  |  7 +++---
 arch/x86/kvm/vmx/nested.c       | 38 +++++++++++++++++++++++++++++++++
 arch/x86/kvm/vmx/vmx.c          | 37 --------------------------------
 6 files changed, 43 insertions(+), 57 deletions(-)
Signature · 1 line
2.26.0