tests/qtest/migration: Add 'to' object into migrate_qmp()
authorHet Gala <het.gala@nutanix.com>
Tue, 12 Mar 2024 20:26:27 +0000 (20:26 +0000)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commit8c47168cca012aa6f64dc50eebdb126ab81e360a
tree9ffa8a5b7e7bdce6873af82397fb22d10272f311
parentc25df57ae8f9fe1c72eee2dab37d76d904ac382e
tests/qtest/migration: Add 'to' object into migrate_qmp()

Add the 'to' object into migrate_qmp(), so we can use
migrate_get_socket_address() inside migrate_qmp() to get
the port value. This is not applied to other migrate_qmp*
because they don't need the port.

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