diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c index f9af31cc84..eb67191304 100644 --- a/src/lxc/lxc_cgroup.c +++ b/src/lxc/lxc_cgroup.c @@ -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;