]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Fix call in qemuDomainSetNumaParamsLive for virCgroupNewIOThread
authorJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 00:01:18 +0000 (20:01 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Sep 2014 01:05:46 +0000 (21:05 -0400)
Found by inspection of the "i+1" change.  IOThreads are numbered 1..n
thus the virCgroupNewIOThread needs to create a 1..n value not 0 based.

src/qemu/qemu_driver.c

index bf78f8d4dd4d08bbbe6ee3dd9d15d66751b00998..6008aeb0783c69ed616811248461ca4e60b02547 100644 (file)
@@ -8760,7 +8760,8 @@ qemuDomainSetNumaParamsLive(virDomainObjPtr vm,
         goto cleanup;
 
     for (i = 0; i < priv->niothreadpids; i++) {
-        if (virCgroupNewIOThread(priv->cgroup, i, false, &cgroup_temp) < 0 ||
+        if (virCgroupNewIOThread(priv->cgroup, i + 1, false,
+                                 &cgroup_temp) < 0 ||
             virCgroupSetCpusetMems(cgroup_temp, nodeset_str) < 0)
             goto cleanup;
         virCgroupFree(&cgroup_temp);