projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index 82f7622c17d3669d87f4b300815b0552223fb912..e430a383ad1515332b7a0127f532366394d436cb 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
));
}
}