mirror of https://github.com/proxmox/mirror_qemu
libqos: tolerate wait-unplug migration state
Signed-off-by: Jens Freimann <jfreimann@redhat.com> Message-Id: <20191029114905.6856-10-jfreimann@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>master
parent
c7e0acd5a3
commit
ea45cb8d84
|
@ -125,7 +125,8 @@ void migrate(QOSState *from, QOSState *to, const char *uri)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((strcmp(st, "setup") == 0) || (strcmp(st, "active") == 0)) {
|
if ((strcmp(st, "setup") == 0) || (strcmp(st, "active") == 0)
|
||||||
|
|| (strcmp(st, "wait-unplug") == 0)) {
|
||||||
qobject_unref(rsp);
|
qobject_unref(rsp);
|
||||||
g_usleep(5000);
|
g_usleep(5000);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue