nVMX: Implement emulated Page Modification Logging
authorBandan Das <bsd@redhat.com>
Fri, 5 May 2017 19:25:14 +0000 (15:25 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 May 2017 09:54:22 +0000 (11:54 +0200)
commitc5f983f6e8455bbff8b6b39f3ad470317fcd808e
tree129db6f8f2d391f4f0cc1fcb25c2d77565abacb2
parentbab4165e2f031905bd0a2bb8b6ad65c5c8cfa870
nVMX: Implement emulated Page Modification Logging

With EPT A/D enabled, processor access to L2 guest
paging structures will result in a write violation.
When this happens, write the GUEST_PHYSICAL_ADDRESS
to the pml buffer provided by L1 if the access is
write and the dirty bit is being set.

This patch also adds necessary checks during VMEntry if L1
has enabled PML. If the PML index overflows, we change the
exit reason and run L1 to simulate a PML full event.

Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c