提交 c8e51773 编写于 作者: L Luyao Huang 提交者: Martin Kletzander

qemu: add a check for nodeset in qemuDomainSetNumaParamsLive

We will try to set the node to cpuset.mems without check if
it is available, since we already have helper to check this.
Call virNumaNodesetIsAvailable to check if node is available,
then try to change it in the cgroup.
Signed-off-by: NLuyao Huang <lhuang@redhat.com>
上级 4d4c90df
...@@ -9995,6 +9995,9 @@ qemuDomainSetNumaParamsLive(virDomainObjPtr vm, ...@@ -9995,6 +9995,9 @@ qemuDomainSetNumaParamsLive(virDomainObjPtr vm,
goto cleanup; goto cleanup;
} }
if (!virNumaNodesetIsAvailable(nodeset))
goto cleanup;
/* Ensure the cpuset string is formatted before passing to cgroup */ /* Ensure the cpuset string is formatted before passing to cgroup */
if (!(nodeset_str = virBitmapFormat(nodeset))) if (!(nodeset_str = virBitmapFormat(nodeset)))
goto cleanup; goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册