public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed()
@ 2010-07-27  3:31 Xiao Guangrong
  2010-07-27  3:33 ` [PATCH 2/3] KVM: MMU: move bits lost judgement into a separate function Xiao Guangrong
  2010-08-02  8:12 ` [PATCH v2 1/3] KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed() Xiao Guangrong
  0 siblings, 2 replies; 11+ messages in thread
From: Xiao Guangrong @ 2010-07-27  3:31 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, LKML, KVM list

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>
---
 arch/x86/kvm/mmu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index bd82635..e10f2bd 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -313,7 +313,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));
 	}
 }
 
-- 
1.6.1.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-08-02  9:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-27  3:31 [PATCH 1/3] KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed() Xiao Guangrong
2010-07-27  3:33 ` [PATCH 2/3] KVM: MMU: move bits lost judgement into a separate function Xiao Guangrong
2010-07-27  3:35   ` [PATCH 3/3] KVM: MMU: mark page dirty only when page is really written Xiao Guangrong
2010-08-02  7:50     ` Avi Kivity
2010-08-02  7:51       ` Xiao Guangrong
2010-08-02  8:15     ` [PATCH v2 " Xiao Guangrong
2010-08-02  7:41   ` [PATCH 2/3] KVM: MMU: move bits lost judgement into a separate function Avi Kivity
2010-08-02  7:50     ` Xiao Guangrong
2010-08-02  8:14   ` [PATCH v2 " Xiao Guangrong
2010-08-02  8:12 ` [PATCH v2 1/3] KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed() Xiao Guangrong
2010-08-02  9:53   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox