diff options
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | 2011-11-29 00:03:36 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 07:52:18 -0500 |
commit | 6addd1aa2ca28c054820ef2966ad372f118c3f31 (patch) | |
tree | 7db9e05b7abbabb92c37bc8e231468b37cdebe47 /arch/x86 | |
parent | 37178b8bf00137dbf28a9b291af4fbc1b8f91dcc (diff) |
KVM: MMU: Add missing large page accounting to drop_large_spte()
Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 8a9b27cb4449..9270e0d93c31 100644 --- 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) | |||
1798 | { | 1798 | { |
1799 | if (is_large_pte(*sptep)) { | 1799 | if (is_large_pte(*sptep)) { |
1800 | drop_spte(vcpu->kvm, sptep); | 1800 | drop_spte(vcpu->kvm, sptep); |
1801 | --vcpu->kvm->stat.lpages; | ||
1801 | kvm_flush_remote_tlbs(vcpu->kvm); | 1802 | kvm_flush_remote_tlbs(vcpu->kvm); |
1802 | } | 1803 | } |
1803 | } | 1804 | } |