• Avi Kivity's avatar
    KVM: MMU: Use different shadows when EFER.NXE changes · 9645bb56
    Avi Kivity authored
    A pte that is shadowed when the guest EFER.NXE=1 is not valid when
    EFER.NXE=0; if bit 63 is set, the pte should cause a fault, and since the
    shadow EFER always has NX enabled, this won't happen.
    
    Fix by using a different shadow page table for different EFER.NXE bits.  This
    allows vcpus to run correctly with different values of EFER.NXE, and for
    transitions on this bit to be handled correctly without requiring a full
    flush.
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    9645bb56
x86.c 109 KB