]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/channel: Centralize calling migration_channel_connect_outgoing
authorFabiano Rosas <farosas@suse.de>
Fri, 23 Jan 2026 14:16:55 +0000 (11:16 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 23 Jan 2026 14:34:25 +0000 (11:34 -0300)
commit03a680c9782ecbbdf2a604918326413527d69322
treec26286d9c9258ee2e161a9d33ad625590b536301
parent2379a04e6012f3f36406e453ddbf1b3fa912d5ae
migration/channel: Centralize calling migration_channel_connect_outgoing

Make the synchronous calls evident by not hiding the call to
migration_channel_connect_outgoing() in the transport code. Have those
functions return and call the function at the upper level.

This helps with navigation: the transport code returns the ioc,
there's no need to look into them when browsing the code.

It also allows RDMA in the source side to use the same path as the
rest of the transports.

While here, document the async calls which are the exception.

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Prasad Pandit <pjp@fedoraproject.org>
Link: https://lore.kernel.org/qemu-devel/20260123141656.6765-26-farosas@suse.de
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/channel.c
migration/exec.c
migration/exec.h
migration/fd.c
migration/fd.h
migration/file.c
migration/file.h
migration/rdma.c
migration/rdma.h