• Jim Mattson's avatar
    KVM: VMX: Skip #PF(RSVD) intercepts when emulating smaller maxphyaddr · 5140bc7d
    Jim Mattson authored
    
    
    As part of smaller maxphyaddr emulation, kvm needs to intercept
    present page faults to see if it needs to add the RSVD flag (bit 3) to
    the error code. However, there is no need to intercept page faults
    that already have the RSVD flag set. When setting up the page fault
    intercept, add the RSVD flag into the #PF error code mask field (but
    not the #PF error code match field) to skip the intercept when the
    RSVD flag is already set.
    Signed-off-by: default avatarJim Mattson <jmattson@google.com>
    Message-Id: <20210618235941.1041604-1-jmattson@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    5140bc7d
vmx.c 223 KB