diff mbox

[QEMU-KVM,2/4] Freeze guest on internal error

Message ID 1257331796-29722-3-git-send-email-avi@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Avi Kivity Nov. 4, 2009, 10:49 a.m. UTC
None
diff mbox

Patch

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 4b22537..5568706 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -878,7 +878,8 @@  static int kvm_handle_internal_error(kvm_context_t kvm,
     kvm_show_regs(env);
     if (run->internal.suberror == KVM_INTERNAL_ERROR_EMULATION)
         fprintf(stderr, "emulation failure, check dmesg for details\n");
-    abort();
+    vm_stop(0);
+    return 0;
 }
 
 int kvm_run(CPUState *env)