diff mbox

stop and show registers on error.

Message ID 20110221101654.GJ14984@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gleb Natapov Feb. 21, 2011, 10:16 a.m. UTC
None
diff mbox

Patch

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 49cd683..2f3f683 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -644,8 +644,7 @@  int kvm_run(CPUState *env)
             break;
 #endif
 	case KVM_EXIT_INTERNAL_ERROR:
-            kvm_handle_internal_error(env, run);
-            r = 1;
+            r = kvm_handle_internal_error(env, run);
 	    break;
         default:
             if (kvm_arch_run(env)) {
@@ -1233,6 +1232,7 @@  int kvm_cpu_exec(CPUState *env)
     r = kvm_run(env);
     if (r < 0) {
         printf("kvm_run returned %d\n", r);
+        kvm_show_regs(env);
         vm_stop(0);
     }