tests/qtest/migration: Add migrate_set_ports into migrate_qmp to update migration...
authorHet Gala <het.gala@nutanix.com>
Tue, 12 Mar 2024 20:26:31 +0000 (20:26 +0000)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commit2a49e3c618cd9edd0ef44af5cd19f7159bc52efc
tree2ab1b69b4ad1afd1bc49ea7b433344d50dbd4cdf
parent387dc407db6137cec479f6c6efb3851464ea9026
tests/qtest/migration: Add migrate_set_ports into migrate_qmp to update migration port value

migrate_get_connect_qdict gets qdict with the dst QEMU parameters.

migrate_set_ports() from list of channels reads each QDict for port,
and fills the port with correct value in case it was 0 in the test.

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-6-het.gala@nutanix.com
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration-helpers.c