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

[Xen-devel] [PATCH 3 of 5] Extend cpupools to support numa


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Thu, 09 Dec 2010 11:51:23 +0100
  • Delivery-date: Thu, 09 Dec 2010 03:00:24 -0800
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Content-Type:MIME-Version:Subject: X-Mercurial-Node:Message-Id:In-Reply-To:Date:From:To; b=a0xL/kGOHbI1zN7+JqUah3LOtyhBzpkkkdnb69Wa8eTfNgicIm8sCeKt v7QKj3XGKFOcl65iZYDKNkdTvDhbjN3b4bngfpk1x3PJd9WYnrD1rdDXy RCKLFRkTS/QZgNU2vHcbiFwj8y9fbzz4PEantN21Lwnn4jObV9eavvkDQ gYPuaDy6tVUzVQ46PFSV3r/OEGE/vOr2hTfHvhlLu2KfC86vSsATN0YK4 uaINzHYV5tXNjPPnJd9YvjMsFa1Dz;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

The user interfaces for cpupools are extended to support numa machines:
- xl cpupool-create supports now specifying a node list instead of a cpu list.
  The new cpupool will be created with all free cpus of the specified numa
  nodes.
- xl cpupool-cpu-remove and xl cpupool-cpu-add can take a node number instead
  of a cpu number. Using 'node:1' for the cpu parameter will, depending on
  the operation, either remove all cpus of node 1 in the specified cpupool,
  or add all free cpus of node 1 to the cpupool.

libxl is extended with the following functions to support this feature:
int libxl_cpupool_cpuadd_node(libxl_ctx *ctx, uint32_t poolid, int node, int 
*cpus)
int libxl_cpupool_cpuremove_node(libxl_ctx *ctx, uint32_t poolid, int node, int 
*cpus)

Signed-off-by: juergen.gross@xxxxxxxxxxxxxx


4 files changed, 155 insertions(+), 8 deletions(-)
tools/libxl/libxl.c       |   74 ++++++++++++++++++++++++++++++++++++++++
tools/libxl/libxl.h       |    2 +
tools/libxl/xl_cmdimpl.c  |   83 +++++++++++++++++++++++++++++++++++++++++----
tools/libxl/xl_cmdtable.c |    4 +-


Attachment: xen-work-5.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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