Rename migration_channel_connect to indicate this is the source
side. Future patches will do similar changes to the incoming side and
this will avoid inconsistencies in naming.
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Prasad Pandit <pjp@fedoraproject.org>
Link: https://lore.kernel.org/qemu-devel/20260123141656.6765-17-farosas@suse.de
Signed-off-by: Fabiano Rosas <farosas@suse.de>
}
}
-
-/**
- * @migration_channel_connect - Create new outgoing migration channel
- *
- * @s: Current migration state
- * @ioc: Channel to which we are connecting
- */
-void migration_channel_connect(MigrationState *s, QIOChannel *ioc)
+void migration_channel_connect_outgoing(MigrationState *s, QIOChannel *ioc)
{
trace_migration_set_outgoing_channel(ioc, object_get_typename(OBJECT(ioc)));
void migration_channel_process_incoming(QIOChannel *ioc);
-void migration_channel_connect(MigrationState *s, QIOChannel *ioc);
+void migration_channel_connect_outgoing(MigrationState *s, QIOChannel *ioc);
int migration_channel_read_peek(QIOChannel *ioc,
const char *buf,
}
qio_channel_set_name(ioc, "migration-exec-outgoing");
- migration_channel_connect(s, ioc);
+ migration_channel_connect_outgoing(s, ioc);
object_unref(OBJECT(ioc));
}
}
qio_channel_set_name(ioc, "migration-fd-outgoing");
- migration_channel_connect(s, ioc);
+ migration_channel_connect_outgoing(s, ioc);
object_unref(OBJECT(ioc));
}
return;
}
qio_channel_set_name(ioc, "migration-file-outgoing");
- migration_channel_connect(s, ioc);
+ migration_channel_connect_outgoing(s, ioc);
}
static gboolean file_accept_incoming_migration(QIOChannel *ioc,
}
trace_migration_socket_outgoing_connected();
- migration_channel_connect(data->s, sioc);
+ migration_channel_connect_outgoing(data->s, sioc);
return;
fail:
trace_migration_socket_outgoing_error(error_get_pretty(err));
}
trace_migration_tls_outgoing_handshake_complete();
- migration_channel_connect(s, ioc);
+ migration_channel_connect_outgoing(s, ioc);
}
QIOChannelTLS *migration_tls_client_create(QIOChannel *ioc,