提交 b4ab019c 编写于 作者: A 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: NAvi Kivity <avi@qumranet.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册