qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] kvm: do not abort if KVM_RUN fails


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH] kvm: do not abort if KVM_RUN fails
Date: Fri, 29 Aug 2014 15:58:37 +0200

Just go to the internal error runstate.  This lets you use the "x",
"dump-guest-memory" or "info register" commands.

Signed-off-by: Paolo Bonzini <address@hidden>
---
 kvm-all.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kvm-all.c b/kvm-all.c
index b240bf8..f5edcb1 100644
--- 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);
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]