]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: Book3S HV: Add ICP real mode counters
authorSuresh Warrier <warrier@linux.vnet.ibm.com>
Fri, 20 Mar 2015 09:39:48 +0000 (20:39 +1100)
committerAlexander Graf <agraf@suse.de>
Tue, 21 Apr 2015 13:21:30 +0000 (15:21 +0200)
commit6e0365b782739eb41b03bcfd23abeefacbf0817a
tree258cd96302294e468779e4b979aa6de48fd4770b
parentb0221556dbd3c31c47f37703f856aeeffc78abd3
KVM: PPC: Book3S HV: Add ICP real mode counters

Add two counters to count how often we generate real-mode ICS resend
and reject events. The counters provide some performance statistics
that could be used in the future to consider if the real mode functions
need further optimizing. The counters are displayed as part of IPC and
ICP state provided by /sys/debug/kernel/powerpc/kvm* for each VM.

Also added two counters that count (approximately) how many times we
don't find an ICP or ICS we're looking for. These are not currently
exposed through sysfs, but can be useful when debugging crashes.

Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv_rm_xics.c
arch/powerpc/kvm/book3s_xics.c
arch/powerpc/kvm/book3s_xics.h