tests/qtest: enhance migration channels
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 15 Jan 2025 19:00:47 +0000 (11:00 -0800)
committerFabiano Rosas <farosas@suse.de>
Wed, 29 Jan 2025 14:56:39 +0000 (11:56 -0300)
commit43ca9d1866b89803490fb69caf5e1d728a112612
tree402969f8cb1a5e61f42417651a5283382b53eace
parentf5bac78cd84a8a928ac5f92e4c00772decc30bab
tests/qtest: enhance migration channels

Change the migrate_qmp and migrate_qmp_fail channels argument to a QObject
type so the caller can manipulate the object before passing it to the
helper.  Define migrate_str_to_channel to aid such manipulation.
Add a channels argument to migrate_incoming_qmp.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1736967650-129648-22-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration/framework.c
tests/qtest/migration/migration-qmp.c
tests/qtest/migration/migration-qmp.h
tests/qtest/migration/misc-tests.c
tests/qtest/migration/precopy-tests.c
tests/qtest/virtio-net-failover.c