aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2018-03-07 08:40:52 +0100
committerJuan Quintela <quintela@redhat.com>2018-05-15 20:24:27 +0200
commit36c2f8be2c4eb0003ac77a14910842b7ddd7337e (patch)
tree8be939bdbec39d683a613ee152b11860b4725f98 /migration/ram.c
parent60df2d4ae59837d1a5afced71ec62a0c86c09f50 (diff)
migration: Delay start of migration main routines
We need to make sure that we have started all the multifd threads. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 87434d3fce..f7e8615e15 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -717,6 +717,9 @@ void multifd_recv_new_channel(QIOChannel *ioc)
qemu_thread_create(&p->thread, p->name, multifd_recv_thread, p,
QEMU_THREAD_JOINABLE);
atomic_inc(&multifd_recv_state->count);
+ if (multifd_recv_state->count == migrate_multifd_channels()) {
+ migration_incoming_process();
+ }
}
/**