Patchwork [PULL,01/13] vl: add missing transition debug->finish_migrate

login
register
mail settings
Submitter Luiz Capitulino
Date Dec. 18, 2013, 4:59 p.m.
Message ID <1387386003-8949-2-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/302981/
State New
Headers show

Comments

Luiz Capitulino - Dec. 18, 2013, 4:59 p.m.
From: Paolo Bonzini <pbonzini@redhat.com>

This fixes an abort if you invoke the "migrate" command while the
guest is being debugged.

Cc: qemu-stable@nongnu.org
Cc: lcapitulino@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/vl.c b/vl.c
index 60dbbcb..10e6c0e 100644
--- a/vl.c
+++ b/vl.c
@@ -591,6 +591,7 @@  typedef struct {
 static const RunStateTransition runstate_transitions_def[] = {
     /*     from      ->     to      */
     { RUN_STATE_DEBUG, RUN_STATE_RUNNING },
+    { RUN_STATE_DEBUG, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_INMIGRATE, RUN_STATE_RUNNING },
     { RUN_STATE_INMIGRATE, RUN_STATE_PAUSED },