vl: add missing transition debug->finish_migrate
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Dec 2013 12:00:15 +0000 (13:00 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 6 Jan 2014 18:29:05 +0000 (13:29 -0500)
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

diff --git a/vl.c b/vl.c
index 7511e7036c1f3a932b5510d599d5e9ba93a63ff8..0f6754561e36ae671ae12643f336bb736564bbc2 100644 (file)
--- 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 },