]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/qemu_driver.c: patch from Guido Günther checking for
authorDaniel Veillard <veillard@redhat.com>
Thu, 24 Jul 2008 07:09:45 +0000 (07:09 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 24 Jul 2008 07:09:45 +0000 (07:09 +0000)
  unsupported migrate command
Daniel

ChangeLog
src/qemu_driver.c

index d4fbf64c2157deecb8aca959d0400021c78f4bff..860bc93f06fa46533213edbb5f030dc2cbd1769d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jul 24 09:08:32 CEST 2008 Daniel Veillard <veillard@redhat.com>
+
+       * src/qemu_driver.c: patch from Guido Günther checking for
+         unsupported migrate command
+
 Tue Jul 22 19:48:51 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
        * docs/java.html docs/java.html.in: added documentation for the
index 3d0b6c5114b50f3103d0f1c409b1114429306715..01b4d18eb88182feb7ee523091ad8883cf11dbdf 100644 (file)
@@ -2417,6 +2417,19 @@ static int qemudDomainSave(virDomainPtr dom,
         return -1;
     }
 
+    DEBUG ("migrate reply: %s", info);
+
+    /* If the command isn't supported then qemu prints:
+     * unknown command: migrate" */
+    if (strstr(info, "unknown command:")) {
+        qemudReportError (dom->conn, dom, NULL, VIR_ERR_NO_SUPPORT,
+                          "%s",
+                          _("'migrate' not supported by this qemu"));
+        VIR_FREE(info);
+        VIR_FREE(command);
+        return -1;
+    }
+
     VIR_FREE(info);
     VIR_FREE(command);