提交 82494cd6 编写于 作者: J John Ferlan

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.
上级 500c91c5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册