summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorDavid Matlack2016-12-21 00:25:57 +0100
committerRadim Krčmář2017-01-09 14:46:03 +0100
commitf3414bc77419463c0d81eaa2cea7ee4ccb447c7d (patch)
tree153185d45ad2105c030648945e650687fe3adfec /arch/x86/kvm/x86.c
parentKVM: x86: simplify conditions with split/kernel irqchip (diff)
downloadkernel-qcow2-linux-f3414bc77419463c0d81eaa2cea7ee4ccb447c7d.tar.gz
kernel-qcow2-linux-f3414bc77419463c0d81eaa2cea7ee4ccb447c7d.tar.xz
kernel-qcow2-linux-f3414bc77419463c0d81eaa2cea7ee4ccb447c7d.zip
kvm: x86: export maximum number of mmu_page_hash collisions
Report the maximum number of mmu_page_hash collisions as a per-VM stat. This will make it easy to identify problems with the mmu_page_hash in the future. Signed-off-by: David Matlack <dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index a356d8e12c2f..4aece8b0a4aa 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -190,6 +190,8 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{ "mmu_unsync", VM_STAT(mmu_unsync) },
{ "remote_tlb_flush", VM_STAT(remote_tlb_flush) },
{ "largepages", VM_STAT(lpages) },
+ { "max_mmu_page_hash_collisions",
+ VM_STAT(max_mmu_page_hash_collisions) },
{ NULL }
};