[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING cor
From: |
Wei Yang |
Subject: |
Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly |
Date: |
Thu, 10 Oct 2019 08:54:16 +0800 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Wed, Oct 09, 2019 at 10:08:42AM +0100, Dr. David Alan Gilbert wrote:
>> >> >
>> >> >Maybe simply fix loadvm_postcopy_handle_run() to set the state after
>> >> >the POSTCOPY_INCOMING_LISTENING check?
>> >> >
>> >>
>> >> Set state back to ps if ps is not POSTCOPY_INCOMING_LISTENING?
>> >>
>> >> Sounds like another option.
>> >
>> >Even simpler?
>> >
>> > ps = postcopy_state_get();
>> > if (ps != INCOMING)
>
> ^^ LISTENING
>
oops
>> > return -1;
>> > postcopy_state_set(RUNNING);
>> >
>>
>> Looks good to me.
>>
>> Dave,
>>
>> Do you feel good with it?
>
>Yes, I think so; it's simpler.
>
I will prepare v2.
>Dave
>
>> >Thanks,
>> >
>> >--
>> >Peter Xu
>>
>> --
>> Wei Yang
>> Help you, Help me
>--
>Dr. David Alan Gilbert / address@hidden / Manchester, UK
--
Wei Yang
Help you, Help me
- [PATCH 1/3] migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup, (continued)
- [PATCH 1/3] migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup, Wei Yang, 2019/10/01
- [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Wei Yang, 2019/10/01
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Dr. David Alan Gilbert, 2019/10/08
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Wei Yang, 2019/10/08
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Peter Xu, 2019/10/09
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Wei Yang, 2019/10/09
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Peter Xu, 2019/10/09
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Wei Yang, 2019/10/09
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly, Dr. David Alan Gilbert, 2019/10/09
- Re: [PATCH 3/3] migration/postcopy: handle POSTCOPY_INCOMING_RUNNING corner case properly,
Wei Yang <=