Skip to contentSkip to conversation

RUN_STATE_POSTMIGRATE can be transited from RUN_STATE_PAUSED

PATCH In review Wen Congyang 3 participants 3 messages Oct 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RUN_STATE_POSTMIGRATE can be transited from RUN_STATE_PAUSED

The user can run command stop before migration. So the guest's RUN_STATE can be transisted from RUN_STATE_PAUSED to RUN_STATE_POSTMIGRATE.

---
 vl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
index 2dce3ae..efae19c 100644
@@ -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 },
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · On Tue, 18 Oct 2011 12:47:27 +0800 Wen Congyang <[email protected]> wrote:

The user can run command stop before migration. So the guest's RUN_STATE can be transisted from RUN_STATE_PAUSED to RUN_STATE_POSTMIGRATE.

I've already submitted a pull request with the exact same patch included.

Thanks.

Quoted 17 lines
---
 vl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
index 2dce3ae..efae19c 100644
@@ -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 },
 
#2 lore raw
Quoted 9 lines · Luiz Capitulino
Quoted 4 lines · On Tue, 18 Oct 2011 12:47:27 +0800 Wen Congyang<[email protected]> wrote:

The user can run command stop before migration. So the guest's RUN_STATE can be transisted from RUN_STATE_PAUSED to RUN_STATE_POSTMIGRATE.

I've already submitted a pull request with the exact same patch included.

Sorry, I do not check the qmp tree before sending it.

Quoted 23 lines

Thanks.

Quoted 17 lines
---
  vl.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
index 2dce3ae..efae19c 100644
@@ -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 },