KVM: stats: Add halt polling related histogram stats
authorJing Zhang <jingzhangos@google.com>
Mon, 2 Aug 2021 16:56:33 +0000 (16:56 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Aug 2021 20:06:33 +0000 (16:06 -0400)
commit8ccba534a1a5c6565220c81113d6157571f380cb
tree97477fd66bb78bfde851b94edda51f9513aac4c2
parent87bcc5fa092f82a9890f9e73e4f4c7016ef64049
KVM: stats: Add halt polling related histogram stats

Add three log histogram stats to record the distribution of time spent
on successful polling, failed polling and VCPU wait.
halt_poll_success_hist: Distribution of spent time for a successful poll.
halt_poll_fail_hist: Distribution of spent time for a failed poll.
halt_wait_hist: Distribution of time a VCPU has spent on waiting.

Signed-off-by: Jing Zhang <jingzhangos@google.com>
Message-Id: <20210802165633.1866976-6-jingzhangos@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_hv.c
include/linux/kvm_host.h
include/linux/kvm_types.h
virt/kvm/kvm_main.c