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