diff options
author | Avi Kivity <avi@qumranet.com> | 2007-12-18 17:47:18 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 16:01:19 (GMT) |
commit | dfc5aa00cbe888d3a9ea97775bbac74cb1c1a1d8 (patch) | |
tree | 4b39394d26c4a71e9325959fd1a9b438c2e3a239 /arch/x86/kvm | |
parent | caa5b8a5ed27708521e0667649699fea202043b2 (diff) | |
download | linux-dfc5aa00cbe888d3a9ea97775bbac74cb1c1a1d8.tar.xz |
KVM: MMU: Add cache miss statistic
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9a57e1a..8f12ec5 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -715,6 +715,7 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu, pgprintk("%s: found\n", __FUNCTION__); return sp; } + ++vcpu->kvm->stat.mmu_cache_miss; sp = kvm_mmu_alloc_page(vcpu, parent_pte); if (!sp) return sp; diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 733bff6..fa9e42c 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -73,6 +73,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { { "mmu_pde_zapped", VM_STAT(mmu_pde_zapped) }, { "mmu_flooded", VM_STAT(mmu_flooded) }, { "mmu_recycled", VM_STAT(mmu_recycled) }, + { "mmu_cache_miss", VM_STAT(mmu_cache_miss) }, { "remote_tlb_flush", VM_STAT(remote_tlb_flush) }, { NULL } }; |