]> git.proxmox.com Git - mirror_qemu.git/commit
tests/migration-test: Add a test for postcopy hangs during RECOVER
authorFabiano Rosas <farosas@suse.de>
Tue, 17 Oct 2023 20:26:31 +0000 (16:26 -0400)
committerJuan Quintela <quintela@redhat.com>
Thu, 2 Nov 2023 10:35:03 +0000 (11:35 +0100)
commit7bca2bb7bfd2fe5241696fd09cc97f23661d4fc8
tree58fc20997cec8e06976aca6d9c659230a93e09d7
parentf8c543e808f20ba936d94cfa5fc592627d8d100c
tests/migration-test: Add a test for postcopy hangs during RECOVER

To do so, create two paired sockets, but make them not providing real data.
Feed those fake sockets to src/dst QEMUs for recovery to let them go into
RECOVER stage without going out.  Test that we can always kick it out and
recover again with the right ports.

This patch is based on Fabiano's version here:

https://lore.kernel.org/r/877cowmdu0.fsf@suse.de

Signed-off-by: Fabiano Rosas <farosas@suse.de>
[peterx: write commit message, remove case 1, fix bugs, and more]
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231017202633.296756-4-peterx@redhat.com>
tests/qtest/migration-test.c