migration/multifd: Add incoming QIOChannelFile support
commit2dd7ee7a51bc0a90abe410d6223b297cf2925e4f
authorFabiano Rosas <farosas@suse.de>
Thu, 29 Feb 2024 15:30:12 +0000 (29 12:30 -0300)
committerPeter Xu <peterx@redhat.com>
Fri, 1 Mar 2024 07:42:04 +0000 (1 15:42 +0800)
treede69df5522741d06c28d23d0e37b73d2ddbe73c7
parentb7b03eb614d01079f9b1f7a1d342140b5055a559
migration/multifd: Add incoming QIOChannelFile support

On the receiving side we don't need to differentiate between main
channel and threads, so whichever channel is defined first gets to be
the main one. And since there are no packets, use the atomic channel
count to index into the params array.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240229153017.2221-19-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/file.c
migration/migration.c
migration/multifd.c