summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/diag.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2012-07-23 17:20:29 +0200
committerAvi Kivity <avi@redhat.com>2012-07-26 14:04:34 +0300
commit5786fffa96ae7c3f8111e29fb62e073a45efc557 (patch)
treed9a8301a36a822b82ae3d4d14b1cb640df686ec2 /arch/s390/kvm/diag.c
parent9b7fb990e080f3a7c5dff9a829d11247e629b98f (diff)
downloadop-kernel-dev-5786fffa96ae7c3f8111e29fb62e073a45efc557.zip
op-kernel-dev-5786fffa96ae7c3f8111e29fb62e073a45efc557.tar.gz
KVM: s390: Add architectural trace events
Add trace events for several s390 architecture specifics: - SIE entry/exit - common intercepts - common instructions (sigp/diagnose) Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kvm/diag.c')
-rw-r--r--arch/s390/kvm/diag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c
index c88bb77..f5d4416 100644
--- a/arch/s390/kvm/diag.c
+++ b/arch/s390/kvm/diag.c
@@ -14,6 +14,7 @@
#include <linux/kvm.h>
#include <linux/kvm_host.h>
#include "kvm-s390.h"
+#include "trace.h"
static int diag_release_pages(struct kvm_vcpu *vcpu)
{
@@ -105,6 +106,7 @@ int kvm_s390_handle_diag(struct kvm_vcpu *vcpu)
{
int code = (vcpu->arch.sie_block->ipb & 0xfff0000) >> 16;
+ trace_kvm_s390_handle_diag(vcpu, code);
switch (code) {
case 0x10:
return diag_release_pages(vcpu);
OpenPOWER on IntegriCloud