Просмотр исходного кода

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>
Jens Freimann 5 лет назад
Родитель
Сommit
ea45cb8d84
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tests/libqos/libqos.c

+ 2 - 1
tests/libqos/libqos.c

@@ -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;