mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
migration: set name for all I/O channels created
Ensure that all I/O channels created for migration are given names to distinguish their respective roles. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
e93a68e102
commit
6f01f136af
6 changed files with 15 additions and 0 deletions
|
@ -38,6 +38,7 @@ void exec_start_outgoing_migration(MigrationState *s, const char *command, Error
|
|||
return;
|
||||
}
|
||||
|
||||
qio_channel_set_name(ioc, "migration-exec-outgoing");
|
||||
migration_channel_connect(s, ioc, NULL);
|
||||
object_unref(OBJECT(ioc));
|
||||
}
|
||||
|
@ -64,6 +65,7 @@ void exec_start_incoming_migration(const char *command, Error **errp)
|
|||
return;
|
||||
}
|
||||
|
||||
qio_channel_set_name(ioc, "migration-exec-incoming");
|
||||
qio_channel_add_watch(ioc,
|
||||
G_IO_IN,
|
||||
exec_accept_incoming_migration,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue