cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From c1da75fb13fdb39be174be97ce3428356f10d320 Mon Sep 17 00:00:00 2001
218e99
From: Marcel Apfelbaum <marcel.a@redhat.com>
218e99
Date: Wed, 6 Nov 2013 16:32:34 +0100
218e99
Subject: [PATCH 75/81] gdbstub: do not restart crashed guest
218e99
218e99
RH-Author: Marcel Apfelbaum <marcel.a@redhat.com>
218e99
Message-id: <1383755557-21590-7-git-send-email-marcel.a@redhat.com>
218e99
Patchwork-id: 55551
218e99
O-Subject: [RHEL-7 qemu-kvm PATCH v3 6/9] gdbstub: do not restart crashed guest
218e99
Bugzilla: 990601
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
218e99
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
218e99
218e99
From: Paolo Bonzini <pbonzini@redhat.com>
218e99
218e99
If a guest has crashed with an internal error or similar, detaching
218e99
gdb (or any other debugger action) should not restart it.
218e99
218e99
Cc: Jan Kiszka <jan.kiszka@siemens.com>
218e99
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
218e99
Message-id: 1369912840-18577-1-git-send-email-pbonzini@redhat.com
218e99
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
218e99
(cherry picked from commit 87f25c12bfeaaa0c41fb857713bbc7e8a9b757dc)
218e99
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
218e99
---
218e99
 gdbstub.c | 4 +++-
218e99
 1 file changed, 3 insertions(+), 1 deletion(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 gdbstub.c |    4 +++-
218e99
 1 files changed, 3 insertions(+), 1 deletions(-)
218e99
218e99
diff --git a/gdbstub.c b/gdbstub.c
218e99
index e80e1d3..90e54cb 100644
218e99
--- a/gdbstub.c
218e99
+++ b/gdbstub.c
218e99
@@ -371,7 +371,9 @@ static inline void gdb_continue(GDBState *s)
218e99
 #ifdef CONFIG_USER_ONLY
218e99
     s->running_state = 1;
218e99
 #else
218e99
-    vm_start();
218e99
+    if (runstate_check(RUN_STATE_DEBUG)) {
218e99
+        vm_start();
218e99
+    }
218e99
 #endif
218e99
 }
218e99
 
218e99
-- 
218e99
1.7.1
218e99