• Bandan Das's avatar
    nVMX: Implement emulated Page Modification Logging · c5f983f6
    Bandan Das authored
    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: default avatarBandan Das <bsd@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    c5f983f6
vmx.c 329 KB