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

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

To: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] change tools cpumaps to uint8_t
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 29 Oct 2010 13:41:37 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 29 Oct 2010 05:42:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d60c1258c6b75f6de0bb.1288331765@nehalem1>
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>
Organization: Citrix Systems, Inc.
References: <d60c1258c6b75f6de0bb.1288331765@nehalem1>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2010-10-29 at 06:56 +0100, Juergen Gross wrote:
> 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

Looks good, thanks.

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

> 
> 
> 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 +++++++++++++++---------------------
> 
> 



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

<Prev in Thread] Current Thread [Next in Thread>