]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: fix regression with pinning
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 24 Aug 2012 15:31:47 +0000 (17:31 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Aug 2012 08:20:42 +0000 (10:20 +0200)
Commit 4b03d59167f4a4c6ec57def315a61d977466e75b changed the pinning
behavior in a way that makes some machines non-startable.

The comment mentioning that we cannot control each vcpu when there is
not VCPU<-> PID mapping available is true, however, this isn't
necessarily an error, because this can be caused by old QEMU without
support for "query-cpus" command as well as a software emulated
machines that don't create more than one process.

src/qemu/qemu_cgroup.c

index 2237d119e63a726f3fba2678dd68358890e036a4..be1b96d71478f3e90aad970bfba9df0d9bca0580 100644 (file)
@@ -567,9 +567,9 @@ int qemuSetupCgroupForVcpu(struct qemud_driver *driver, virDomainObjPtr vm)
         /* If we don't know VCPU<->PID mapping or all vcpu runs in the same
          * thread, we cannot control each vcpu.
          */
-        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                        _("Unable to get vcpus' pids."));
-        goto cleanup;
+        VIR_WARN("Unable to get vcpus' pids.");
+        virCgroupFree(&cgroup);
+        return 0;
     }
 
     for (i = 0; i < priv->nvcpupids; i++) {