Skip to content

KVM: nVMX: Mark APIC page dirty on VM-Exit

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 apic, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 2 repliesApplied

Changes in v3 from the cover letter

- Fix a benign memslots bug in __kvm_vcpu_map().
- Mark vmcs12 pages dirty if and only if they're mapped (out-of-band).
- Don't mark the APIC access page dirty when deliver nested posted IRQ.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: Use vCPU specific memslots in __kvm_vcpu_map()virt/kvm/kvm_main.c+1 -10 replies
2/5KVM: x86: Mark vmcs12 pages as dirty if and only if they're mappedarch/x86/kvm/vmx/nested.c include/linux/kvm_host.h+11 -130 replies
3/5KVM: nVMX: Precisely mark vAPIC and PID maps dirty when delivering nested PIarch/x86/kvm/vmx/nested.c+2 -10 replies
4/5KVM: VMX: Move nested_mark_vmcs12_pages_dirty() to vmx.c, and renamearch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c+13 -141 reply
5/5KVM: nVMX: Mark APIC access page dirty when syncing vmcs12 pagesarch/x86/kvm/vmx/vmx.c+1 -40 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/5] KVM: nVMX: Mark APIC page dirty on VM-Exit

Extended version of Fred's patch to mark the APIC access page dirty on VM-Exit (KVM already marks it dirty when it's unmapped).

v3:
- Fix a benign memslots bug in __kvm_vcpu_map().
- Mark vmcs12 pages dirty if and only if they're mapped (out-of-band).
- Don't mark the APIC access page dirty when deliver nested posted IRQ.

v2: https://lore.kernel.org/all/[email protected]

Fred Griffoul (1):
KVM: nVMX: Mark APIC access page dirty when syncing vmcs12 pages

Sean Christopherson (4):
KVM: Use vCPU specific memslots in __kvm_vcpu_map()
KVM: x86: Mark vmcs12 pages as dirty if and only if they're mapped
KVM: nVMX: Precisely mark vAPIC and PID maps dirty when delivering
nested PI
KVM: VMX: Move nested_mark_vmcs12_pages_dirty() to vmx.c, and rename

 arch/x86/kvm/vmx/nested.c | 25 ++-----------------------
 arch/x86/kvm/vmx/vmx.c    | 11 ++++++++++-
 include/linux/kvm_host.h  |  9 ++++++++-
 virt/kvm/kvm_main.c       |  2 +-
 4 files changed, 21 insertions(+), 26 deletions(-)

base-commit: 115d5de2eef32ac5cd488404b44b38789362dbe6

Signature · 1 line
2.52.0.rc2.455.g230fcf2819-goog