]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Fix iothreads issue
authorJohn Ferlan <jferlan@redhat.com>
Mon, 15 Sep 2014 23:57:22 +0000 (19:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 01:05:46 +0000 (21:05 -0400)
If there are no iothreads, then return from qemuProcessDetectIOThreadPIDs
without error; otherwise, the following occurs:

error: Failed to start domain $dom
error: An error occurred, but the cause is unknown

src/qemu/qemu_process.c

index 6c412dbff0a2740fc98db17e8ae6dad6f748ed44..a2efdcaad904a4f543f016ebe653099f5c8a5610 100644 (file)
@@ -2110,9 +2110,13 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
         goto cleanup;
     niothreads = qemuMonitorGetIOThreads(priv->mon, &iothreads);
     qemuDomainObjExitMonitor(driver, vm);
-    if (niothreads <= 0)
+    if (niothreads < 0)
         goto cleanup;
 
+    /* Nothing to do */
+    if (niothreads == 0)
+        return 0;
+
     if (niothreads != vm->def->iothreads) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("got wrong number of IOThread pids from QEMU monitor. "