]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: PPC: Book3S HV: Add guest->host real mode completion counters
authorSuresh E. Warrier <warrier@linux.vnet.ibm.com>
Fri, 20 Mar 2015 09:39:45 +0000 (20:39 +1100)
committerAlexander Graf <agraf@suse.de>
Tue, 21 Apr 2015 13:21:30 +0000 (15:21 +0200)
commit878610fe9884a34a282cd4431237343864324d23
treee87987f0da6ea462d6a790cebe3673fba8a6d8ff
parenta4bd6eb07ca72d21a7a34499ad34cfef6f527d4e
KVM: PPC: Book3S HV: Add guest->host real mode completion counters

Add counters to track number of times we switch from guest real mode
to host virtual mode during an interrupt-related hyper call because the
hypercall requires actions that cannot be completed in real mode. This
will help when making optimizations that reduce guest-host transitions.

It is safe to use an ordinary increment rather than an atomic operation
because there is one ICP per virtual CPU and kvmppc_xics_rm_complete()
only works on the ICP for the current VCPU.

The counters are displayed as part of IPC and ICP state provided by
/sys/debug/kernel/powerpc/kvm* for each VM.

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_xics.c
arch/powerpc/kvm/book3s_xics.h