diff options
Diffstat (limited to 'arch/mips/kvm/mips.c')
-rw-r--r-- | arch/mips/kvm/mips.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index 07ce10e3627a..29afd96069ef 100644 --- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c | |||
@@ -1343,6 +1343,7 @@ int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) | |||
1343 | u32 __user *opc = (u32 __user *) vcpu->arch.pc; | 1343 | u32 __user *opc = (u32 __user *) vcpu->arch.pc; |
1344 | unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; | 1344 | unsigned long badvaddr = vcpu->arch.host_cp0_badvaddr; |
1345 | enum emulation_result er = EMULATE_DONE; | 1345 | enum emulation_result er = EMULATE_DONE; |
1346 | u32 inst; | ||
1346 | int ret = RESUME_GUEST; | 1347 | int ret = RESUME_GUEST; |
1347 | 1348 | ||
1348 | /* re-enable HTW before enabling interrupts */ | 1349 | /* re-enable HTW before enabling interrupts */ |
@@ -1467,8 +1468,12 @@ int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) | |||
1467 | break; | 1468 | break; |
1468 | 1469 | ||
1469 | default: | 1470 | default: |
1471 | if (cause & CAUSEF_BD) | ||
1472 | opc += 1; | ||
1473 | inst = 0; | ||
1474 | kvm_get_inst(opc, vcpu, &inst); | ||
1470 | kvm_err("Exception Code: %d, not yet handled, @ PC: %p, inst: 0x%08x BadVaddr: %#lx Status: %#lx\n", | 1475 | kvm_err("Exception Code: %d, not yet handled, @ PC: %p, inst: 0x%08x BadVaddr: %#lx Status: %#lx\n", |
1471 | exccode, opc, kvm_get_inst(opc, vcpu), badvaddr, | 1476 | exccode, opc, inst, badvaddr, |
1472 | kvm_read_c0_guest_status(vcpu->arch.cop0)); | 1477 | kvm_read_c0_guest_status(vcpu->arch.cop0)); |
1473 | kvm_arch_vcpu_dump_regs(vcpu); | 1478 | kvm_arch_vcpu_dump_regs(vcpu); |
1474 | run->exit_reason = KVM_EXIT_INTERNAL_ERROR; | 1479 | run->exit_reason = KVM_EXIT_INTERNAL_ERROR; |