]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 28 Sep 2009 16:23:47 +0000 (13:23 -0300)
commitd3e73e8a04f6c22c6da5ad1cac82142bc4190f36
tree1773b904b037e03563de75ccae42eef6fbbd72da
parent6c702d8a107815537ed7512a4021f07079ab8232
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