|
@@ -634,7 +634,12 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
|
|
|
|
|
|
switch (exit_nr) {
|
|
|
case BOOKE_INTERRUPT_MACHINE_CHECK:
|
|
|
- r = RESUME_GUEST;
|
|
|
+ printk("MACHINE CHECK: %lx\n", mfspr(SPRN_MCSR));
|
|
|
+ kvmppc_dump_vcpu(vcpu);
|
|
|
+ /* For debugging, send invalid exit reason to user space */
|
|
|
+ run->hw.hardware_exit_reason = ~1ULL << 32;
|
|
|
+ run->hw.hardware_exit_reason |= mfspr(SPRN_MCSR);
|
|
|
+ r = RESUME_HOST;
|
|
|
break;
|
|
|
|
|
|
case BOOKE_INTERRUPT_EXTERNAL:
|