diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1594ee06c920..5c4c16662c68 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -549,7 +549,8 @@ static void rmap_remove(struct kvm *kvm, u64 *spte) | |||
549 | return; | 549 | return; |
550 | sp = page_header(__pa(spte)); | 550 | sp = page_header(__pa(spte)); |
551 | page = spte_to_page(*spte); | 551 | page = spte_to_page(*spte); |
552 | mark_page_accessed(page); | 552 | if (*spte & PT_ACCESSED_MASK) |
553 | mark_page_accessed(page); | ||
553 | if (is_writeble_pte(*spte)) | 554 | if (is_writeble_pte(*spte)) |
554 | kvm_release_page_dirty(page); | 555 | kvm_release_page_dirty(page); |
555 | else | 556 | else |