Re: [PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-23 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Feb 23, 2022 at 09:52:08AM +, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > On Tue, Feb 22, 2022 at 11:32:10AM +, Dr. David Alan Gilbert wrote: > > > > * Peter Xu (pet...@redhat.com) wrote: > > > > > To allow

Re: [PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-23 Thread Peter Xu
On Wed, Feb 23, 2022 at 09:52:08AM +, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > On Tue, Feb 22, 2022 at 11:32:10AM +, Dr. David Alan Gilbert wrote: > > > * Peter Xu (pet...@redhat.com) wrote: > > > > To allow postcopy recovery, the ram fast load

Re: [PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-23 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Tue, Feb 22, 2022 at 11:32:10AM +, Dr. David Alan Gilbert wrote: > > * Peter Xu (pet...@redhat.com) wrote: > > > To allow postcopy recovery, the ram fast load (preempt-only) dest QEMU > > > thread > > > needs similar handling on fault tolerance.

Re: [PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-22 Thread Peter Xu
On Tue, Feb 22, 2022 at 11:32:10AM +, Dr. David Alan Gilbert wrote: > * Peter Xu (pet...@redhat.com) wrote: > > To allow postcopy recovery, the ram fast load (preempt-only) dest QEMU > > thread > > needs similar handling on fault tolerance. When ram_load_postcopy() fails, > > instead of

Re: [PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-22 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > To allow postcopy recovery, the ram fast load (preempt-only) dest QEMU thread > needs similar handling on fault tolerance. When ram_load_postcopy() fails, > instead of stopping the thread it halts with a semaphore, preparing to be > kicked again when

[PATCH 19/20] migration: Postcopy recover with preempt enabled

2022-02-16 Thread Peter Xu
To allow postcopy recovery, the ram fast load (preempt-only) dest QEMU thread needs similar handling on fault tolerance. When ram_load_postcopy() fails, instead of stopping the thread it halts with a semaphore, preparing to be kicked again when recovery is detected. A mutex is introduced to make