[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxl: bail from placement on non-NUMA boxes



On Wed, 2014-04-30 at 17:44 +0200, Dario Faggioli wrote:
> 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 <dario.faggioli@xxxxxxxxxx>

Acked + applied.

> ---
>  tools/libxl/libxl_numa.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tools/libxl/libxl_numa.c b/tools/libxl/libxl_numa.c
> index 4fac664..94ca4fe 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);
>  
>      /*
> 





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.