mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: move income process out of multifd
Move the call to migration_incoming_process() out of multifd code. It's a bit strange that we can migration generic calls in multifd code. Instead, let multifd_recv_new_channel() return a boolean showing whether it's ready to continue the incoming migration. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180627132246.5576-3-peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
eed1cc7866
commit
81e620531f
3 changed files with 10 additions and 8 deletions
|
@ -507,7 +507,10 @@ void migration_ioc_process_incoming(QIOChannel *ioc)
|
|||
migration_incoming_setup(f);
|
||||
return;
|
||||
}
|
||||
multifd_recv_new_channel(ioc);
|
||||
|
||||
if (multifd_recv_new_channel(ioc)) {
|
||||
migration_incoming_process();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue