• J
    kvm: x86: mmu: Do not use bit 63 for tracking special SPTEs · 37f0e8fe
    Junaid Shahid 提交于
    MMIO SPTEs currently set both bits 62 and 63 to distinguish them as special
    PTEs. However, bit 63 is used as the SVE bit in Intel EPT PTEs. The SVE bit
    is ignored for misconfigured PTEs but not necessarily for not-Present PTEs.
    Since MMIO SPTEs use an EPT misconfiguration, so using bit 63 for them is
    acceptable. However, the upcoming fast access tracking feature adds another
    type of special tracking PTE, which uses not-Present PTEs and hence should
    not set bit 63.
    
    In order to use common bits to distinguish both type of special PTEs, we
    now use only bit 62 as the special bit.
    Signed-off-by: NJunaid Shahid <junaids@google.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    37f0e8fe
kvm_host.h 40.5 KB