KVM: MMU: Fix inherited permissions for emulated guest pte updates
authorAvi Kivity <avi@qumranet.com>
Sun, 9 Dec 2007 15:00:02 +0000 (17:00 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:20 +0000 (17:53 +0200)
commit41074d07c78b086b18fc2af590caef05dbcca568
tree1e07a3d17d718d61bbb45e427c7e7980f2b7ad2e
parentbedbe4ee86195dcd899577828714cc1413beb571
KVM: MMU: Fix inherited permissions for emulated guest pte updates

When we emulate a guest pte write, we fail to apply the correct inherited
permissions from the parent ptes.  Now that we store inherited permissions
in the shadow page, we can use that to update the pte permissions correctly.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/mmu.c
drivers/kvm/paging_tmpl.h