projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc40f0
)
KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed()
author
Xiao Guangrong
<xiaoguangrong@cn.fujitsu.com>
Mon, 2 Aug 2010 08:12:08 +0000
(16:12 +0800)
committer
Avi 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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index
82f7622
..
e430a38
100644
(file)
--- 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
));
}
}