Commit b4ab019c authored by Avi Kivity's avatar Avi Kivity

KVM: MMU: No need to pick up nx bit from guest pte

We already set it according to cumulative access permissions.
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 41074d07
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment