Patchwork RUN_STATE_POSTMIGRATE can be transited from RUN_STATE_PAUSED

login
register
mail settings
Submitter Wen Congyang
Date Oct. 18, 2011, 4:47 a.m.
Message ID <4E9D04DF.1060401@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/120364/
State New
Headers show

Comments

Wen Congyang - Oct. 18, 2011, 4:47 a.m.
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.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>

---
 vl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Luiz Capitulino - Oct. 18, 2011, 12:35 p.m.
On Tue, 18 Oct 2011 12:47:27 +0800
Wen Congyang <wency@cn.fujitsu.com> 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.
> 
> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>

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

Thanks.

> 
> ---
>  vl.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/vl.c b/vl.c
> index 2dce3ae..efae19c 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 },
>
Wen Congyang - Oct. 18, 2011, 3:17 p.m.
On 10/18/2011 08:35 PM, Luiz Capitulino wrote:
> On Tue, 18 Oct 2011 12:47:27 +0800
> Wen Congyang<wency@cn.fujitsu.com>  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.
>>
>> Signed-off-by: Wen Congyang<wency@cn.fujitsu.com>
>
> I've already submitted a pull request with the exact same patch included.

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

>
> Thanks.
>
>>
>> ---
>>   vl.c |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/vl.c b/vl.c
>> index 2dce3ae..efae19c 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 },
>>
>
>
>

Patch

diff --git a/vl.c b/vl.c
index 2dce3ae..efae19c 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 },