]> git.baikalelectronics.ru Git - kernel.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)
commitbd34ea55f7f5dbd7f3172c5f3f02e2ba9eaea490
tree258cd96302294e468779e4b979aa6de48fd4770b
parent106c1acf1379e2d0f4f40b17aa5f6fd40ea2a48a
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