projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37178b8
)
KVM: MMU: Add missing large page accounting to drop_large_spte()
author
Takuya Yoshikawa
<yoshikawa.takuya@oss.ntt.co.jp>
Tue, 29 Nov 2011 05:03:36 +0000
(14:03 +0900)
committer
Avi Kivity
<avi@redhat.com>
Mon, 5 Mar 2012 12:52:18 +0000
(14:52 +0200)
Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
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
8a9b27c
..
9270e0d
100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-1798,6
+1798,7
@@
static void drop_large_spte(struct kvm_vcpu *vcpu, u64 *sptep)
{
if (is_large_pte(*sptep)) {
drop_spte(vcpu->kvm, sptep);
+ --vcpu->kvm->stat.lpages;
kvm_flush_remote_tlbs(vcpu->kvm);
}
}