Skip to content
Commit d196e343 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Decouple mmio from shadow page tables



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>
parent 1d6ad207
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment