aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-10-13 14:39:59 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-10-19 10:48:57 -0200
commitee21cb5f1db20ae449d2b59130fd6b7bdc8a6e4b (patch)
tree39ed9e94bf5297fa18015232918a85792b6ad565 /vl.c
parent207c5cd20c15244b7747cacf45b8dc1fd27deaa4 (diff)
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 <lcapitulino@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
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 },