Skip to contentSkip to conversation

vl: fix migration from prelaunch state

PATCH In review Paolo Bonzini 2 participants 2 messages Feb 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vl: fix migration from prelaunch state

Reproducer is simply to migrate a virtual machine that was started with -S.

---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 1ec62ac..e600f8d 100644
@@ -590,6 +590,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_INMIGRATE, RUN_STATE_WATCHDOG },
     { RUN_STATE_INMIGRATE, RUN_STATE_GUEST_PANICKED },
     { RUN_STATE_INMIGRATE, RUN_STATE_FINISH_MIGRATE },
+    { RUN_STATE_INMIGRATE, RUN_STATE_PRELAUNCH },
 
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },
Signature · 1 line
2.5.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · * Paolo Bonzini ([email protected]) wrote:

Reproducer is simply to migrate a virtual machine that was started with -S.

(I'm sure we have a bz for that as well somewhere)

Dave

Quoted 20 lines
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 1ec62ac..e600f8d 100644
@@ -590,6 +590,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_INMIGRATE, RUN_STATE_WATCHDOG },
     { RUN_STATE_INMIGRATE, RUN_STATE_GUEST_PANICKED },
     { RUN_STATE_INMIGRATE, RUN_STATE_FINISH_MIGRATE },
+    { RUN_STATE_INMIGRATE, RUN_STATE_PRELAUNCH },
 
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },
Signature · 1 line
2.5.0

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK