aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2015-07-09 07:43:41 -0400
committerChristian Borntraeger <borntraeger@de.ibm.com>2015-07-29 05:02:32 -0400
commit15e8b5daabe37b56e8117957ea1a10e99d380ac4 (patch)
tree33af95daaaa6c3cefc51953bd30d3dd722d14b66 /arch/s390/kvm
parent175a5c9e79b0eb822c158a6535f44a8460b40664 (diff)
KVM: s390: Improve vcpu event debugging for diagnoses
Let's add a vcpu event for the page reference handling and change the default debugging level for the ipl diagnose. Both are not frequent AND change the global state, so lets log them always. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r--arch/s390/kvm/diag.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c
index 98066167a2c8..18717547e3ae 100644
--- a/arch/s390/kvm/diag.c
+++ b/arch/s390/kvm/diag.c
@@ -75,6 +75,8 @@ static int __diag_page_ref_service(struct kvm_vcpu *vcpu)
75 u16 rx = (vcpu->arch.sie_block->ipa & 0xf0) >> 4; 75 u16 rx = (vcpu->arch.sie_block->ipa & 0xf0) >> 4;
76 u16 ry = (vcpu->arch.sie_block->ipa & 0x0f); 76 u16 ry = (vcpu->arch.sie_block->ipa & 0x0f);
77 77
78 VCPU_EVENT(vcpu, 3, "diag page reference parameter block at 0x%llx",
79 vcpu->run->s.regs.gprs[rx]);
78 vcpu->stat.diagnose_258++; 80 vcpu->stat.diagnose_258++;
79 if (vcpu->run->s.regs.gprs[rx] & 7) 81 if (vcpu->run->s.regs.gprs[rx] & 7)
80 return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION); 82 return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION);
@@ -175,7 +177,7 @@ static int __diag_ipl_functions(struct kvm_vcpu *vcpu)
175 unsigned int reg = vcpu->arch.sie_block->ipa & 0xf; 177 unsigned int reg = vcpu->arch.sie_block->ipa & 0xf;
176 unsigned long subcode = vcpu->run->s.regs.gprs[reg] & 0xffff; 178 unsigned long subcode = vcpu->run->s.regs.gprs[reg] & 0xffff;
177 179
178 VCPU_EVENT(vcpu, 5, "diag ipl functions, subcode %lx", subcode); 180 VCPU_EVENT(vcpu, 3, "diag ipl functions, subcode %lx", subcode);
179 vcpu->stat.diagnose_308++; 181 vcpu->stat.diagnose_308++;
180 switch (subcode) { 182 switch (subcode) {
181 case 3: 183 case 3: