KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed()
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 2 Aug 2010 08:12:08 +0000 (16:12 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:30 +0000 (10:50 +0200)
It's a small cleanup that using using kvm_set_pfn_accessed() instead
of mark_page_accessed()

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c

index 82f7622c17d3669d87f4b300815b0552223fb912..e430a383ad1515332b7a0127f532366394d436cb 100644 (file)
@@ -309,7 +309,7 @@ static void update_spte(u64 *sptep, u64 new_spte)
        else {
                old_spte = __xchg_spte(sptep, new_spte);
                if (old_spte & shadow_accessed_mask)
-                       mark_page_accessed(pfn_to_page(spte_to_pfn(old_spte)));
+                       kvm_set_pfn_accessed(spte_to_pfn(old_spte));
        }
 }