]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit662ce88150726160b4161d7387c46b99902eca0a
tree129db6f8f2d391f4f0cc1fcb25c2d77565abacb2
parent53559f6216a0bcc9d0abbe5dd298a331930cec17
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