Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4ab019c authored by Avi Kivity's avatar Avi Kivity
Browse files

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -258,7 +258,6 @@ static void FNAME(set_pte)(struct kvm_vcpu *vcpu, pt_element_t gpte,
	 * demand paging).
	 * demand paging).
	 */
	 */
	spte = PT_PRESENT_MASK | PT_DIRTY_MASK;
	spte = PT_PRESENT_MASK | PT_DIRTY_MASK;
	spte |= gpte & PT64_NX_MASK;
	if (!dirty)
	if (!dirty)
		pte_access &= ~ACC_WRITE_MASK;
		pte_access &= ~ACC_WRITE_MASK;
	if (!(pte_access & ACC_EXEC_MASK))
	if (!(pte_access & ACC_EXEC_MASK))