From: Xiao Guangrong Date: Mon, 2 Aug 2010 08:12:08 +0000 (+0800) Subject: KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed() X-Git-Tag: v5.15~27686^2~276 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=251464c464cf7df7d6d548f1065f49a3ecd08118;p=mirror_ubuntu-kernels.git 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 Signed-off-by: Avi Kivity --- 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) 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)); } }