Skip to content

Commit

Permalink
KVM: MMU: No need to pick up nx bit from guest pte
Browse files Browse the repository at this point in the history
We already set it according to cumulative access permissions.

Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent 41074d0 commit b4ab019
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b4ab019

Please sign in to comment.