From: Peter Xu Date: Wed, 19 Jun 2024 22:30:45 +0000 (-0400) Subject: tests/migration-tests: Verify postcopy-recover-setup status X-Git-Tag: pull-vmclock-20250108~278^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8dbd24d3aa6d67b2d3576da016fb631fd1edfc2c;p=users%2Fdwmw2%2Fqemu.git tests/migration-tests: Verify postcopy-recover-setup status Making sure the postcopy-recover-setup status is present in the postcopy failure unit test. Note that it only applies to src QEMU not dest. Signed-off-by: Peter Xu Reviewed-by: Fabiano Rosas Signed-off-by: Fabiano Rosas --- diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 32e31fff86..e61096adfe 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -1413,6 +1413,12 @@ static void postcopy_recover_fail(QTestState *from, QTestState *to) migrate_recover(to, "fd:fd-mig"); migrate_qmp(from, to, "fd:fd-mig", NULL, "{'resume': true}"); + /* + * Source QEMU has an extra RECOVER_SETUP phase, dest doesn't have it. + * Make sure it appears along the way. + */ + migration_event_wait(from, "postcopy-recover-setup"); + /* * Make sure both QEMU instances will go into RECOVER stage, then test * kicking them out using migrate-pause.