提交 6a15cc6b 编写于 作者: J Jiri Denemark

qemu: Only check for NUMA availability if required

We only care about NUMA availability if NUMA configuration is requested
in domain XML.
上级 10208cc5
......@@ -1197,6 +1197,9 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
int i = 0;
int maxnode = 0;
if (!vm->def->numatune.memory.nodemask)
return 0;
VIR_DEBUG("Setting NUMA memory policy");
if (numa_available() < 0) {
......@@ -1205,9 +1208,6 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
return -1;
}
if (!vm->def->numatune.memory.nodemask)
return 0;
if (VIR_ALLOC(mask) < 0) {
virReportOOMError();
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册