From: Dario Faggioli Date: Wed, 30 Apr 2014 15:44:13 +0000 (+0200) Subject: libxl: bail from placement on non-NUMA boxes X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5071 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a7776a916a4d117c72ecf417a623fa20a505b90;p=xen.git libxl: bail from placement on non-NUMA boxes If there only is 1 NUMA node, no need to go through placement candidate selection, etc., we can just bail. Signed-off-by: Dario Faggioli Acked-by: Ian Campbell --- diff --git a/tools/libxl/libxl_numa.c b/tools/libxl/libxl_numa.c index 4fac6641c6..94ca4fec46 100644 --- a/tools/libxl/libxl_numa.c +++ b/tools/libxl/libxl_numa.c @@ -308,6 +308,11 @@ int libxl__get_numa_candidate(libxl__gc *gc, if (ninfo == NULL) return ERROR_FAIL; + if (nr_nodes <= 1) { + *cndt_found = 0; + goto out; + } + GCNEW_ARRAY(vcpus_on_node, nr_nodes); /*