aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2010-08-02 04:12:08 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:50:30 -0400
commit251464c464cf7df7d6d548f1065f49a3ecd08118 (patch)
tree556423e9fda8feb7854cc3d52c3d82efe54bf56b /arch/x86/kvm/mmu.c
parent4fc40f076f4fa289dd546990b597351c9cdad985 (diff)
KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed()
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>
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 82f7622c17d3..e430a383ad15 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -309,7 +309,7 @@ static void update_spte(u64 *sptep, u64 new_spte)
309 else { 309 else {
310 old_spte = __xchg_spte(sptep, new_spte); 310 old_spte = __xchg_spte(sptep, new_spte);
311 if (old_spte & shadow_accessed_mask) 311 if (old_spte & shadow_accessed_mask)
312 mark_page_accessed(pfn_to_page(spte_to_pfn(old_spte))); 312 kvm_set_pfn_accessed(spte_to_pfn(old_spte));
313 } 313 }
314} 314}
315 315