We only care about NUMA availability if NUMA configuration is requested
in domain XML.
---
src/qemu/qemu_process.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 8e09e52..37d5a22 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -1197,17 +1197,17 @@ 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) {
qemuReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("Host kernel is not aware of
NUMA."));
return -1;
}
- if (!vm->def->numatune.memory.nodemask)
- return 0;
-
if (VIR_ALLOC(mask) < 0) {
virReportOOMError();
return -1;
--
1.7.5.3