KVM: MMU: add SPTE_HOST_WRITEABLE flag to the shadow ptes
authorIzik Eidus <ieidus@redhat.com>
Wed, 23 Sep 2009 18:47:17 +0000 (21:47 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 4 Oct 2009 15:04:50 +0000 (17:04 +0200)
commit1403283acca398e244ece35741ad251c1feb5972
tree59a19bdd805c2e58929a38503435fb73d95f2ee4
parentacb66dd051d0834c8b36d147ff83a8d39da0fe0b
KVM: MMU: add SPTE_HOST_WRITEABLE flag to the shadow ptes

this flag notify that the host physical page we are pointing to from
the spte is write protected, and therefore we cant change its access
to be write unless we run get_user_pages(write = 1).

(this is needed for change_pte support in kvm)

Signed-off-by: Izik Eidus <ieidus@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h