mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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 1a7be8c600
we have checked the memory mode in virDomainNumatuneGetNodeset. This
patch adds the check as before.
Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
This commit is contained in:
parent
38a0f6df64
commit
8a3844f818
@ -79,6 +79,10 @@ static int virLXCCgroupSetupCpusetTune(virDomainDefPtr def,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virDomainNumatuneGetMode(def->numatune, -1) !=
|
||||
VIR_DOMAIN_NUMATUNE_MEM_STRICT)
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainNumatuneMaybeFormatNodeset(def->numatune, nodemask,
|
||||
&mask, -1) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user