aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/diag.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2012-07-23 11:20:29 -0400
committerAvi Kivity <avi@redhat.com>2012-07-26 07:04:34 -0400
commit5786fffa96ae7c3f8111e29fb62e073a45efc557 (patch)
treed9a8301a36a822b82ae3d4d14b1cb640df686ec2 /arch/s390/kvm/diag.c
parent9b7fb990e080f3a7c5dff9a829d11247e629b98f (diff)
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 c88bb7793390..f5d4416ebfed 100644
--- a/arch/s390/kvm/diag.c
+++ b/arch/s390/kvm/diag.c
@@ -14,6 +14,7 @@
14#include <linux/kvm.h> 14#include <linux/kvm.h>
15#include <linux/kvm_host.h> 15#include <linux/kvm_host.h>
16#include "kvm-s390.h" 16#include "kvm-s390.h"
17#include "trace.h"
17 18
18static int diag_release_pages(struct kvm_vcpu *vcpu) 19static int diag_release_pages(struct kvm_vcpu *vcpu)
19{ 20{
@@ -105,6 +106,7 @@ int kvm_s390_handle_diag(struct kvm_vcpu *vcpu)
105{ 106{
106 int code = (vcpu->arch.sie_block->ipb & 0xfff0000) >> 16; 107 int code = (vcpu->arch.sie_block->ipb & 0xfff0000) >> 16;
107 108
109 trace_kvm_s390_handle_diag(vcpu, code);
108 switch (code) { 110 switch (code) {
109 case 0x10: 111 case 0x10:
110 return diag_release_pages(vcpu); 112 return diag_release_pages(vcpu);