aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 853a2889b202..866d7133cad8 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1192,7 +1192,7 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *shadow_pte,
1192 */ 1192 */
1193 spte = shadow_base_present_pte | shadow_dirty_mask; 1193 spte = shadow_base_present_pte | shadow_dirty_mask;
1194 if (!speculative) 1194 if (!speculative)
1195 pte_access |= PT_ACCESSED_MASK; 1195 spte |= shadow_accessed_mask;
1196 if (!dirty) 1196 if (!dirty)
1197 pte_access &= ~ACC_WRITE_MASK; 1197 pte_access &= ~ACC_WRITE_MASK;
1198 if (pte_access & ACC_EXEC_MASK) 1198 if (pte_access & ACC_EXEC_MASK)