diff options
author | Het Gala <het.gala@nutanix.com> | 2024-03-12 20:26:32 +0000 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-04-23 18:36:01 -0400 |
commit | d5ee387de9169a0b1b7f20a930d58b7a3b676f45 (patch) | |
tree | 70d8d474b5b021bee46c0031f6bd055c146af946 /tests/qtest/migration-helpers.h | |
parent | 2a49e3c618cd9edd0ef44af5cd19f7159bc52efc (diff) | |
download | qemu-d5ee387de9169a0b1b7f20a930d58b7a3b676f45.zip qemu-d5ee387de9169a0b1b7f20a930d58b7a3b676f45.tar.gz qemu-d5ee387de9169a0b1b7f20a930d58b7a3b676f45.tar.bz2 |
tests/qtest/migration: Add channels parameter in migrate_qmp
Alter migrate_qmp() to allow use of channels parameter, but only
fill the uri with correct port number if there are no channels.
Here we don't want to allow the wrong cases of having both or
none (ex: migrate_qmp_fail).
Signed-off-by: Het Gala <het.gala@nutanix.com>
Suggested-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240312202634.63349-7-het.gala@nutanix.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'tests/qtest/migration-helpers.h')
-rw-r--r-- | tests/qtest/migration-helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/migration-helpers.h b/tests/qtest/migration-helpers.h index 4e66414..1339835 100644 --- a/tests/qtest/migration-helpers.h +++ b/tests/qtest/migration-helpers.h @@ -25,9 +25,9 @@ typedef struct QTestMigrationState { bool migrate_watch_for_events(QTestState *who, const char *name, QDict *event, void *opaque); -G_GNUC_PRINTF(4, 5) +G_GNUC_PRINTF(5, 6) void migrate_qmp(QTestState *who, QTestState *to, const char *uri, - const char *fmt, ...); + const char *channels, const char *fmt, ...); G_GNUC_PRINTF(3, 4) void migrate_incoming_qmp(QTestState *who, const char *uri, |