提交 8a3844f8 编写于 作者: W Wang Rui 提交者: Martin Kletzander

lxc: don't setup cpuset.mems if memory mode in numatune is not 'strict'

If the memory mode in numatune is not 'strict', we should not setup
cpuset.mems. Before commit 1a7be8c6
we have checked the memory mode in virDomainNumatuneGetNodeset. This
patch adds the check as before.
Signed-off-by: NWang Rui <moon.wangrui@huawei.com>
上级 38a0f6df
...@@ -79,6 +79,10 @@ static int virLXCCgroupSetupCpusetTune(virDomainDefPtr def, ...@@ -79,6 +79,10 @@ static int virLXCCgroupSetupCpusetTune(virDomainDefPtr def,
goto cleanup; goto cleanup;
} }
if (virDomainNumatuneGetMode(def->numatune, -1) !=
VIR_DOMAIN_NUMATUNE_MEM_STRICT)
goto cleanup;
if (virDomainNumatuneMaybeFormatNodeset(def->numatune, nodemask, if (virDomainNumatuneMaybeFormatNodeset(def->numatune, nodemask,
&mask, -1) < 0) &mask, -1) < 0)
goto cleanup; goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册