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