Skip to contentSkip to conversation

vl: new runstate transition: RUN_STATE_GUEST_PANICKED -> RUN_STATE_FINISH_MIGRATE

PATCH RESEND Applied Paolo Bonzini 2 participants 2 messages May 20, 2013 – May 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 vl: new runstate transition: RUN_STATE_GUEST_PANICKED -> RUN_STATE_FINISH_MIGRATE

From: Hu Tao <[email protected]>

This fixes a problem that after guest panic happens, virsh dump without --memory-only fails:

ERROR: invalid runstate transition: 'guest-panicked' -> 'finish-migrate'

---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index be0a93c..59dc0b4 100644
@@ -609,6 +609,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_WATCHDOG, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_GUEST_PANICKED, RUN_STATE_PAUSED },
+    { RUN_STATE_GUEST_PANICKED, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_MAX, RUN_STATE_MAX },
 };
Signature · 1 line
1.8.1.4