virCommandFree(cmd);
return output;
}
-#else
+#else /* !HAVE_NUMAD */
char *
virNumaGetAutoPlacementAdvice(unsigned short vcpus ATTRIBUTE_UNUSED,
unsigned long long balloon ATTRIBUTE_UNUSED)
_("numad is not available on this host"));
return NULL;
}
-#endif
+#endif /* !HAVE_NUMAD */
#if WITH_NUMACTL
int
# undef MASK_CPU_ISSET
# undef n_bits
-#else
+#else /* !WITH_NUMACTL */
+
int
virNumaSetupMemoryPolicy(virDomainNumatunePtr numatune,
virBitmapPtr nodemask ATTRIBUTE_UNUSED)
_("NUMA isn't available on this host"));
return -1;
}
-#endif
-
+#endif /* !WITH_NUMACTL */
/**
* virNumaGetMaxCPUs:
return ret;
}
+#else /* !(WITH_NUMACTL && HAVE_NUMA_BITMASK_ISBITSET) */
-#else
bool
virNumaNodeIsAvailable(int node)
{
VIR_DEBUG("NUMA distance information isn't available on this host");
return 0;
}
-#endif
+#endif /* !(WITH_NUMACTL && HAVE_NUMA_BITMASK_ISBITSET) */
/* currently all the huge page stuff below is linux only */