From ad8e96e16685d9c3eebeb8f2589a69d564abab7b Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 13 Oct 2011 14:39:59 -0300 Subject: runstate: Allow to transition from paused to postmigrate The user may already have paused the VM before starting the migration process. If s/he does that, then the state will be 'paused' when we finish the migration process. In that case we want to transition from 'paused' to 'postmigrate' as the latter is now the real reason why the VM is stopped. Signed-off-by: Luiz Capitulino --- vl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 2a634a7ce6..3e5fdf540e 100644 --- a/vl.c +++ b/vl.c @@ -341,6 +341,7 @@ static const RunStateTransition runstate_transitions_def[] = { { RUN_STATE_IO_ERROR, RUN_STATE_RUNNING }, { RUN_STATE_PAUSED, RUN_STATE_RUNNING }, + { RUN_STATE_PAUSED, RUN_STATE_POSTMIGRATE }, { RUN_STATE_POSTMIGRATE, RUN_STATE_RUNNING }, -- cgit v1.2.3