diff options
-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 211fef83be5d..179ce9e8145e 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, | |||
258 | * demand paging). | 258 | * demand paging). |
259 | */ | 259 | */ |
260 | spte = PT_PRESENT_MASK | PT_DIRTY_MASK; | 260 | spte = PT_PRESENT_MASK | PT_DIRTY_MASK; |
261 | spte |= gpte & PT64_NX_MASK; | ||
262 | if (!dirty) | 261 | if (!dirty) |
263 | pte_access &= ~ACC_WRITE_MASK; | 262 | pte_access &= ~ACC_WRITE_MASK; |
264 | if (!(pte_access & ACC_EXEC_MASK)) | 263 | if (!(pte_access & ACC_EXEC_MASK)) |