Skip to content

nVMX: Emulated Page Modification Logging for Nested Virtualization

Bandan Das kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

2/3: Clear out all bits except bit 12
3/3: Slightly modify an existing comment, honor L0's PML setting when clearing it for L1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm: x86: Add a hook for arch specific dirty logging emulationarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.c arch/x86/kvm/mmu.h +1 more+22 -04 replies
2/3nVMX: Implement emulated Page Modification Loggingarch/x86/kvm/vmx.c+79 -24 replies
3/3nVMX: Advertise PML to L1 hypervisorarch/x86/kvm/vmx.c+11 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] nVMX: Emulated Page Modification Logging for Nested Virtualization

v2:
2/3: Clear out all bits except bit 12
3/3: Slightly modify an existing comment, honor L0's PML setting when clearing it for L1

v1:
http://www.spinics.net/lists/kvm/msg149247.html

These patches implement PML on top of EPT A/D emulation (ae1e2d1082ae).

When dirty bit is being set, we write the gpa to the buffer provided by L1. If the index overflows, we just change the exit reason before running L1.

Bandan Das (3):
kvm: x86: Add a hook for arch specific dirty logging emulation
nVMX: Implement emulated Page Modification Logging
nVMX: Advertise PML to L1 hypervisor

 arch/x86/include/asm/kvm_host.h |  2 +
 arch/x86/kvm/mmu.c              | 15 +++++++
 arch/x86/kvm/mmu.h              |  1 +
 arch/x86/kvm/paging_tmpl.h      |  4 ++
 arch/x86/kvm/vmx.c              | 97 ++++++++++++++++++++++++++++++++++++++---
 5 files changed, 112 insertions(+), 7 deletions(-)
Signature · 1 line
2.9.3