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: Fri, 29 Oct 2010 07:56:05 +0200
Delivery-date: Thu, 28 Oct 2010 23:02:32 -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=1288331802; x=1319867802; 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<d60c1258c6b75f6d e0bb.1288331765@nehalem1>|Date:=20Fri,=2029=20Oct=202010 =2007:56:05=20+0200|From:=20Juergen=20Gross=20<juergen.gr oss@xxxxxxxxxxxxxx>|To:=20xen-devel@xxxxxxxxxxxxxxxxxxx; bh=czZI5Y5Gcv9yIfw7Ws4e0t7m7oPhDNOao9mQLFeB7Ho=; b=VZY+HyCN8KG5SJ1PfRjrlmDwzfDKxSGB7vZuvG0umuzT0HqChPtE4Mua 3JaassUKdpw1NfuCYeFtj2g/AaGoExkiiwmZ9mxaD/GL4ykmXX//wsnUO quSg6R0PyUKQROg2cM49pfHh3OVwqoSVSqaD5a79wz/ZzT7BfVPV5cLGS BYafPfZlmc/BdcPE5r0Fuv4DcbLQaBnQ/IgLMcDTWECukvutTdk+JOQN0 Q/lnBDA1rN5kTrhSHzT8e3Q8ZeA4i;
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=A2yyLS5EO2Bp7koFZz90cC0uHOzMgpG9KEBlED2Za4QAE7tspaQMvccA yER4AH4CHyHpBnPDc5J22a26xtqKuF27WwVbEaE27xza3lYoreCYTn3v9 ELDwEGiXwVSJewCxpYl5h5tSNyHnfaUrpNzkXZa2wmznqoi4iUCr9xe2C EBkQZsa8jXHOJklei19CfIvSMJC2qyuKvA1tVcXIhsXWMwG9KALH878aH 4B5PjVVzMW+rBOkp2QU2cnMo+2uGy;
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, 190 insertions(+), 152 deletions(-)
tools/libxc/xc_cpupool.c          |   50 ++++++++++++++---------------
tools/libxc/xc_domain.c           |   26 ++++++++++++---
tools/libxc/xc_misc.c             |   15 ++++++++
tools/libxc/xenctrl.h             |   40 +++++++++++++++--------
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-work.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>