diff options
author | Avi Kivity <avi@qumranet.com> | 2007-12-09 17:27:52 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:53:20 +0200 |
commit | b4ab019ce71efe30790b5aaa396549a16bb20608 (patch) | |
tree | f502e79d39cce0af0514d6f03fe09aa2d9ceed43 /drivers | |
parent | 41074d07c78b086b18fc2af590caef05dbcca568 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/kvm/paging_tmpl.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 211fef83be5..179ce9e8145 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)) |