Re: [PATCH] migration: Wait on preempt channel in preempt thread

2023-03-15 Thread Juan Quintela
Peter Xu wrote: > QEMU main thread will wait until dest preempt channel established during > processing the LISTEN command (within the whole postcopy PACKAGED data), by > waiting on the semaphore postcopy_qemufile_dst_done. > > That's racy, because it's possible that the dest QEMU main thread hasn

[PATCH] migration: Wait on preempt channel in preempt thread

2023-03-14 Thread Peter Xu
QEMU main thread will wait until dest preempt channel established during processing the LISTEN command (within the whole postcopy PACKAGED data), by waiting on the semaphore postcopy_qemufile_dst_done. That's racy, because it's possible that the dest QEMU main thread hasn't yet accept()ed the new