qemu: Fix call in qemuDomainSetNumaParamsLive for virCgroupNewIOThread

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.
This commit is contained in:
John Ferlan 2014-09-15 20:01:18 -04:00
parent 500c91c57d
commit 82494cd628

View 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);