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 3 of 5] Extend cpupools to support numa

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 3 of 5] Extend cpupools to support numa
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Thu, 09 Dec 2010 13:39:39 +0100
Delivery-date: Thu, 09 Dec 2010 04:51:00 -0800
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1291898640; x=1323434640; h=mime-version:subject:message-id:in-reply-to:date:from:to; z=MIME-Version:=201.0|Subject:=20[PATCH=203=20of=205]=20Ex tend=20cpupools=20to=20support=20numa|Message-Id:=20<3436 7a3d42f7f8145bdc.1291898379@nehalem1>|In-Reply-To:=20<pat chbomb.1291898376@nehalem1>|Date:=20Thu,=2009=20Dec=20201 0=2013:39:39=20+0100|From:=20Juergen=20Gross=20<juergen.g ross@xxxxxxxxxxxxxx>|To:=20xen-devel@xxxxxxxxxxxxxxxxxxx; bh=4bMJL0yo2gZLdjyPPi+5uRxoiX/R6HWABsk8a1se2dg=; b=wGzcD3CJFVipV4JYLSvSVmInk8fMRvNUflyBG0C99JgGJAcjrYLUfzd6 OSeSNUUj23peg1JYlXbynQOvi3JsFNxpui0M8511u5+HIhez9W0f9Gwrg pxC3SY7sCEflcU8J3McArxdUggg820E+cSxuajoNAaHiHwE3ZWMnZt9bg dxLt5siG0V7v1hPFIQ7AkSnXhapccQz2WzWItBJpmwygDw+RkRsWNP6gf tjisKx4/Wa/t9ol0fGTZNyEZ3SYmy;
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=ibVxrShnQ12Nn2pIdLKtZDe4fCbo3y8sHqe77HlJRjk7QEkxOMXotZDQ Y0kzyxufBllM8OZfBxoVFfz+e8dhqQAmIMZP7mdYlMzxA2nyvfGnUOSe2 AZFejWlTu3pnEnyloGDIYIHbB4nPNodXrBY7k2h2dOCkCJXiQOMxMMVGd mHKfYjotvfxKKAIzESkl8R86mXEsjsB3lUBU0CW5XHhof+ahjSWKATCoc NLNVzyR1EeZ3RNMWVrJwmyO2mqYOl;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1291898376@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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