WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] change tools cpumaps to uint8_t
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
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1288255314; x=1319791314; h=mime-version:subject:message-id:date:from:to; z=MIME-Version:=201.0|Subject:=20[PATCH]=20change=20tools =20cpumaps=20to=20uint8_t|Message-Id:=20<51ed06fc352e979e 6f2a.1288255274@nehalem1>|Date:=20Thu,=2028=20Oct=202010 =2010:41:14=20+0200|From:=20Juergen=20Gross=20<juergen.gr oss@xxxxxxxxxxxxxx>|To:=20xen-devel@xxxxxxxxxxxxxxxxxxx; bh=lUNf6QFZ9O+tyUswcIWiZsycgY0CzyL6cuISHfkLoP8=; b=a8Q/JOq0YK2WOPISVMwMzosC/YVv3//NEl9M579O0Wq4+hcLWzNskUSK RFrNnoc7z4xr6Nld5M6GS5GK/Uy3maSkYWhXUUvx81iGXoNwMubG8issL MOCgi0NJl7W6D+rLMqqauQJySQD18xKZsdttPpHM1wLnTX50LZOHESrO1 uHF6cCdT07hFOPCH1gLHDxH0P1BZd47TYq+9XhV9hIDIg/V0c0LryqUJa al2rTcusonLcIl0UHgyxkCzc12g5Z;
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;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>