migration-test: cpr-transfer
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 15 Jan 2025 19:00:49 +0000 (11:00 -0800)
committerFabiano Rosas <farosas@suse.de>
Wed, 29 Jan 2025 14:56:39 +0000 (11:56 -0300)
commit360b5d773be1fcc25579abce0f5d2b6e1922327a
treeb47edce15281b1a8ffcfc6f3d7f77c952196ac45
parente6c18b996e6c3a41c9a028f325d293d6740e52b2
migration-test: cpr-transfer

Add a migration test for cpr-transfer mode.  Defer the connection to the
target monitor, else the test hangs because in cpr-transfer mode QEMU does
not listen for monitor connections until we send the migrate command to
source QEMU.

To test -incoming defer, send a migrate incoming command to the target,
after sending the migrate command to the source, as required by
cpr-transfer mode.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1736967650-129648-24-git-send-email-steven.sistare@oracle.com
[only allocate in_channels when needed]
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration/cpr-tests.c
tests/qtest/migration/framework.c
tests/qtest/migration/framework.h