migration : add setup state

since qemu 1.5, they are a new migration state : "setup"

it's mainly use for rdma migration, but slow vm can it see and hang on migration

http://git.qemu.org/?p=qemu.git;a=commit;h=3b6959506831193f37cc830c8e111b437c0d1380

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2014-06-17 07:44:05 +02:00 committed by Dietmar Maurer
parent 53fc9f1e98
commit 985a5f483d

View File

@ -446,6 +446,12 @@ sub phase2 {
}
die "too many query migrate failures - aborting\n";
}
if ($stat->{status} =~ m/^(setup)$/im) {
sleep(1);
next;
}
if ($stat->{status} =~ m/^(active|completed|failed|cancelled)$/im) {
$merr = undef;
$err_count = 0;