diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2019-02-19 04:53:45 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-02-19 06:00:15 +0100 |
commit | 8f1f7b9bedbce8d84e0b6b8beac671a6bc8f02c9 (patch) | |
tree | d95a233ba4ac90a2fd19fe2613b28c8ac09aa278 /arch/powerpc/kvm/book3s.c | |
parent | KVM: PPC: Release all hardware TCE tables attached to a group (diff) | |
download | linux-8f1f7b9bedbce8d84e0b6b8beac671a6bc8f02c9.tar.xz linux-8f1f7b9bedbce8d84e0b6b8beac671a6bc8f02c9.zip |
KVM: PPC: Book3S HV: Add KVM stat largepages_[2M/1G]
This adds an entry to the kvm_stats_debugfs directory which provides the
number of large (2M or 1G) pages which have been used to setup the guest
mappings, for radix guests.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 601c094f15ab..22a46c64536b 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c @@ -39,6 +39,7 @@ #include "book3s.h" #include "trace.h" +#define VM_STAT(x) offsetof(struct kvm, stat.x), KVM_STAT_VM #define VCPU_STAT(x) offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU /* #define EXIT_DEBUG */ @@ -71,6 +72,8 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { { "pthru_all", VCPU_STAT(pthru_all) }, { "pthru_host", VCPU_STAT(pthru_host) }, { "pthru_bad_aff", VCPU_STAT(pthru_bad_aff) }, + { "largepages_2M", VM_STAT(num_2M_pages) }, + { "largepages_1G", VM_STAT(num_1G_pages) }, { NULL } }; |