]> Git Repo - qemu.git/commitdiff
kvm: do not abort if KVM_RUN fails
authorPaolo Bonzini <[email protected]>
Fri, 29 Aug 2014 13:58:20 +0000 (15:58 +0200)
committerPaolo Bonzini <[email protected]>
Tue, 9 Sep 2014 11:13:05 +0000 (13:13 +0200)
Just go to the internal error runstate.  This lets you use the "x",
"dump-guest-memory" or "info register" commands.

Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
kvm-all.c

index b240bf87a9058518ac0dddb9a847325792e06495..f5edcb13d1b07e6a358ce524ccbf6e7960c937b7 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1738,7 +1738,8 @@ int kvm_cpu_exec(CPUState *cpu)
             }
             fprintf(stderr, "error: kvm run failed %s\n",
                     strerror(-run_ret));
-            abort();
+            ret = -1;
+            break;
         }
 
         trace_kvm_run_exit(cpu->cpu_index, run->exit_reason);
This page took 0.028503 seconds and 4 git commands to generate.