qemu/tests/qtest/migration
Jaehoon Kim 430671f526 tests/migration: Setup pre-listened cpr.sock to remove race-condition.
When the source VM attempts to connect to the destination VM's Unix
domain socket (cpr.sock) during a cpr-transfer test, race conditions can
occur if the socket file isn't ready. This can lead to connection
failures when running tests.

This patch creates and listens on the socket in advance, and passes the
pre-listened FD directly. This avoids timing issues and improves the
reliability of CPR tests.

Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: Jaehoon Kim <jhkim@linux.ibm.com>
Reviewed-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/r/20250611205610.147008-2-jhkim@linux.ibm.com
[peterx: null-initialize opts_target, per Steve]
Signed-off-by: Peter Xu <peterx@redhat.com>
2025-06-23 16:03:59 -04:00
..
aarch64 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
i386 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
ppc64 tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
s390x tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
bootfile.c tests/qtest/migration: Move common test code 2024-12-12 10:25:40 -03:00
bootfile.h tests/qtest/migration: Move common test code 2024-12-12 10:25:40 -03:00
compression-tests.c tests/qtest/migration: add postcopy tests with multifd 2025-05-20 11:26:32 -04:00
cpr-tests.c tests/migration: Setup pre-listened cpr.sock to remove race-condition. 2025-06-23 16:03:59 -04:00
file-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
framework.c qtest: introduce qtest_init_ext 2025-05-09 16:14:30 -03:00
framework.h tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
Makefile tests/migration: Disambiguate guestperf vs. a-b 2024-12-12 10:25:39 -03:00
migration-qmp.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
migration-qmp.h tests/qtest: enhance migration channels 2025-01-29 11:56:39 -03:00
migration-util.c tests/qtest/migration: Introduce migration_test_add_suffix 2025-02-14 15:19:06 -03:00
migration-util.h tests/qtest/migration: Introduce migration_test_add_suffix 2025-02-14 15:19:06 -03:00
misc-tests.c tests/qtest/migration: consolidate set capabilities 2025-05-02 11:09:36 -04:00
postcopy-tests.c tests/qtest/migration: add postcopy tests with multifd 2025-05-20 11:26:32 -04:00
precopy-tests.c tests/qtest/migration: add postcopy tests with multifd 2025-05-20 11:26:32 -04:00
tls-tests.c tests/qtest/migration: add postcopy tests with multifd 2025-05-20 11:26:32 -04:00