]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
libqos: tolerate wait-unplug migration state
authorJens Freimann <jfreimann@redhat.com>
Tue, 29 Oct 2019 11:49:03 +0000 (12:49 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Oct 2019 22:55:26 +0000 (18:55 -0400)
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>
tests/libqos/libqos.c

index d71557c5cb629da5b5540ada368e1068c76588ca..f229eb2cb831c95a4f74fa7937d0ff42a021bf3f 100644 (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;