diff options
author | Peter Xu <peterx@redhat.com> | 2022-10-11 17:55:50 -0400 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-12-15 10:30:37 +0100 |
commit | f3321554ef7e3adc3be6f697185d3bd50d60e30e (patch) | |
tree | b977a562b1e4d62e6cd2792c3d23720c76459d4a /migration/multifd.c | |
parent | eaa238ab31d9d74ad09100b0f56dfe21f299eb30 (diff) |
migration: Yield bitmap_mutex properly when sending/sleeping
Don't take the bitmap mutex when sending pages, or when being throttled by
migration_rate_limit() (which is a bit tricky to call it here in ram code,
but seems still helpful).
It prepares for the possibility of concurrently sending pages in >1 threads
using the function ram_save_host_page() because all threads may need the
bitmap_mutex to operate on bitmaps, so that either sendmsg() or any kind of
qemu_sem_wait() blocking for one thread will not block the other from
progressing.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/multifd.c')
0 files changed, 0 insertions, 0 deletions