migration: Synchronize multifd threads with main thread
commit6df264ac5a7f532adf718b55d5ef713247d857b1
authorJuan Quintela <quintela@redhat.com>
Wed, 28 Feb 2018 08:10:07 +0000 (28 09:10 +0100)
committerJuan Quintela <quintela@redhat.com>
Wed, 27 Jun 2018 11:28:11 +0000 (27 13:28 +0200)
treed84f44428b8ae4d915ca7236113da12714337d11
parent0beb5ed3279abf80d0475ca35f48041b02a9851a
migration: Synchronize multifd threads with main thread

We synchronize all threads each RAM_SAVE_FLAG_EOS.  Bitmap
synchronizations don't happen inside a  ram section, so we are safe
about two channels trying to overwrite the same memory.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
--
seq needs to be atomic now, will also be accessed from main thread.
Fix the if (true || ...) leftover
We are back to non-atomics
migration/ram.c
migration/trace-events