]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Decouple mmio from shadow page tables
authorAvi Kivity <avi@qumranet.com>
Thu, 24 Jan 2008 09:44:11 +0000 (11:44 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:17 +0000 (11:53 +0300)
commitd8b77dd0e136b598abccad9c282223eeb4b525d7
tree167f9f75636769efdc9fa9dd32883b5c780a4c12
parent51aace428fb3d34a9a94aeeb9a7741dd95bea478
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: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h