summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-12-09 17:27:52 +0200
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:20 +0200
commitb4ab019ce71efe30790b5aaa396549a16bb20608 (patch)
treef502e79d39cce0af0514d6f03fe09aa2d9ceed43
parent41074d07c78b086b18fc2af590caef05dbcca568 (diff)
downloadop-kernel-dev-b4ab019ce71efe30790b5aaa396549a16bb20608.zip
op-kernel-dev-b4ab019ce71efe30790b5aaa396549a16bb20608.tar.gz
KVM: MMU: No need to pick up nx bit from guest pte
We already set it according to cumulative access permissions. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/paging_tmpl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h
index 211fef8..179ce9e 100644
--- a/drivers/kvm/paging_tmpl.h
+++ b/drivers/kvm/paging_tmpl.h
@@ -258,7 +258,6 @@ static void FNAME(set_pte)(struct kvm_vcpu *vcpu, pt_element_t gpte,
* demand paging).
*/
spte = PT_PRESENT_MASK | PT_DIRTY_MASK;
- spte |= gpte & PT64_NX_MASK;
if (!dirty)
pte_access &= ~ACC_WRITE_MASK;
if (!(pte_access & ACC_EXEC_MASK))
OpenPOWER on IntegriCloud