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
Jens Freimann 2019-10-29 12:49:03 +01:00 committed by Michael S. Tsirkin
parent c7e0acd5a3
commit ea45cb8d84
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ void migrate(QOSState *from, QOSState *to, const char *uri)
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);
g_usleep(5000);
continue;