Skip to contentSkip to conversation

migration: yet more possible state transitions

PATCH In review Juan Quintela 2 participants 4 messages Jul 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 migration: yet more possible state transitions

On destination, we move from INMIGRATE to FINISH_MIGRATE. Add that to the list of allowed states.

---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 0adbbd6..45eb9ea 100644
@@ -582,6 +582,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_INMIGRATE, RUN_STATE_SUSPENDED },
     { RUN_STATE_INMIGRATE, RUN_STATE_WATCHDOG },
     { RUN_STATE_INMIGRATE, RUN_STATE_GUEST_PANICKED },
+    { RUN_STATE_INMIGRATE, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },
Signature · 1 line
2.4.3
#1 lore raw
Quoted 4 lines · Juan Quintela

On destination, we move from INMIGRATE to FINISH_MIGRATE. Add that to the list of allowed states.

Self-NAK.

Somewhere I was able to test old + new qemu given this weird behaviour. behaviour makes no sense, and I am not able to reproduce anymore.

Sorry for the noise.

Quoted 16 lines
---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 0adbbd6..45eb9ea 100644
@@ -582,6 +582,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_INMIGRATE, RUN_STATE_SUSPENDED },
     { RUN_STATE_INMIGRATE, RUN_STATE_WATCHDOG },
     { RUN_STATE_INMIGRATE, RUN_STATE_GUEST_PANICKED },
+    { RUN_STATE_INMIGRATE, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
     { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },
#2 lore raw
Quoted 8 lines · Juan Quintela
Quoted 4 lines
Quoted 4 lines

On destination, we move from INMIGRATE to FINISH_MIGRATE. Add that to the list of allowed states.

Self-NAK.

Somewhere I was able to test old + new qemu given this weird behaviour. behaviour makes no sense, and I am not able to reproduce anymore.

I think it makes sense. Did you migrate twice on the source? Then the state was FINISH_MIGRATE at the beginning of the second migration.

Paolo

#3 lore raw
Quoted 4 lines · Paolo Bonzini
Quoted 3 lines · Juan Quintela
Quoted 3 lines
Quoted 3 lines

On destination, we move from INMIGRATE to FINISH_MIGRATE. Add that to the list of allowed states.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

Self-NAK.

Somewhere I was able to test old + new qemu given this weird behaviour. behaviour makes no sense, and I am not able to reproduce anymore.

I think it makes sense. Did you migrate twice on the source? Then the state was FINISH_MIGRATE at the beginning of the second migration.

It could be, I would try again with normal trees (I was using and old compiled binary in one of the sides when errors happened).

Later, Juan.