]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
KVM: s390: Improve vcpu event debugging for diagnoses
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 9 Jul 2015 11:43:41 +0000 (13:43 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 29 Jul 2015 09:02:32 +0000 (11:02 +0200)
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>
arch/s390/kvm/diag.c

index 98066167a2c8f31ad7027014b70bfd7432ddb112..18717547e3aeb24d86dc830e835af41991b2799e 100644 (file)
@@ -75,6 +75,8 @@ static int __diag_page_ref_service(struct kvm_vcpu *vcpu)
        u16 rx = (vcpu->arch.sie_block->ipa & 0xf0) >> 4;
        u16 ry = (vcpu->arch.sie_block->ipa & 0x0f);
 
+       VCPU_EVENT(vcpu, 3, "diag page reference parameter block at 0x%llx",
+                  vcpu->run->s.regs.gprs[rx]);
        vcpu->stat.diagnose_258++;
        if (vcpu->run->s.regs.gprs[rx] & 7)
                return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION);
@@ -175,7 +177,7 @@ static int __diag_ipl_functions(struct kvm_vcpu *vcpu)
        unsigned int reg = vcpu->arch.sie_block->ipa & 0xf;
        unsigned long subcode = vcpu->run->s.regs.gprs[reg] & 0xffff;
 
-       VCPU_EVENT(vcpu, 5, "diag ipl functions, subcode %lx", subcode);
+       VCPU_EVENT(vcpu, 3, "diag ipl functions, subcode %lx", subcode);
        vcpu->stat.diagnose_308++;
        switch (subcode) {
        case 3: