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

[Xen-devel] [PATCH] change tools cpumaps to uint8_t


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Thu, 28 Oct 2010 10:41:14 +0200
  • Delivery-date: Thu, 28 Oct 2010 01:42:53 -0700
  • 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:Date:From:To; b=SVJ3XDntMyt8Yfn79LxJavkrf4WqjvfDkiPtiWCNVV1GeJwCCSJ1FSwr CvYUnZ7hSWILGPA5/Cux7KcJvQIQHU9zx/xg64q03xIHh59Z9L6bzSim/ QvY+5BaPG5cBL9WgDVSJjUan2mIokezVH7JT0B7E9nEBBxbpZzEXfbFzc DFSTPaKMNwg2tksg2w6FhVHJPZ2KKmNOwJTIaN+HiUbfKA4w7u/Hc79pd CD2zpk1m7UELpnF2C9L8gMoZ0mGu1;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Cpumap types in tools (libxc and libxl) are changed to be based on bytes like
in the interface to the hypervisor.
To make handling easier the size of used cpumaps is always based on the
number of physical cpus supported by the hypervisor. This eliminates the need
to keep track of the cpumap size in external interfaces.
In libxl a macro for cycling through a cpumap is added (libxl_for_each_cpu).

Interfaces changed:
libxl_set_vcpuaffinity()
libxl_cpumap_alloc()
xc_vcpu_setaffinity()
xc_vcpu_getaffinity()
xc_cpupool_freeinfo()

Signed-off-by: juergen.gross@xxxxxxxxxxxxxx


10 files changed, 180 insertions(+), 163 deletions(-)
tools/libxc/xc_cpupool.c          |   59 +++++++++++++---------------------
tools/libxc/xc_domain.c           |   14 ++++----
tools/libxc/xc_misc.c             |   18 ++++++++++
tools/libxc/xenctrl.h             |   41 ++++++++++++++++--------
tools/libxl/libxl.c               |   63 ++++++++++++++++++++-----------------
tools/libxl/libxl.h               |    4 +-
tools/libxl/libxl_utils.c         |   21 +++++++-----
tools/libxl/libxl_utils.h         |    4 +-
tools/libxl/xl_cmdimpl.c          |   57 ++++++++++++++-------------------
tools/python/xen/lowlevel/xc/xc.c |   62 +++++++++++++++---------------------


Attachment: xen-staging.hg.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®.