• Avi Kivity's avatar
    KVM: MMU: Decouple mmio from shadow page tables · d196e343
    Avi Kivity authored
    Currently an mmio guest pte is encoded in the shadow pagetable as a
    not-present trapping pte, with the SHADOW_IO_MARK bit set.  However
    nothing is ever done with this information, so maintaining it is a
    useless complication.
    
    This patch moves the check for mmio to before shadow ptes are instantiated,
    so the shadow code is never invoked for ptes that reference mmio.  The code
    is simpler, and with future work, can be made to handle mmio concurrently.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    d196e343
mmu.c 45 KB