If the memory mode in numatune is not 'strict', we should not setup
cpuset.mems. Before commit
1a7be8c600905aa07ac2d78293336ba8523ad48e
we have checked the memory mode in virDomainNumatuneGetNodeset. This
patch adds the check as before.
Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
goto cleanup;
}
+ if (virDomainNumatuneGetMode(def->numatune, -1) !=
+ VIR_DOMAIN_NUMATUNE_MEM_STRICT)
+ goto cleanup;
+
if (virDomainNumatuneMaybeFormatNodeset(def->numatune, nodemask,
&mask, -1) < 0)
goto cleanup;