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] use full-size cpumask for vcpu-pin

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Patch] use full-size cpumask for vcpu-pin
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Mon, 02 Aug 2010 08:40:04 +0200
Delivery-date: Sun, 01 Aug 2010 23:40:46 -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=1280731193; x=1312267193; h=message-id:date:from:mime-version:to:subject; z=Message-ID:=20<4C566844.2070408@xxxxxxxxxxxxxx>|Date:=20 Mon,=2002=20Aug=202010=2008:40:04=20+0200|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel @lists.xensource.com>|Subject:=20[Patch]=20use=20full-siz e=20cpumask=20for=20vcpu-pin; bh=ksJBvKWbd84eH356V4UPGueBs5sQRrvK1zAVFKaxoJs=; b=otY3JKmZOidJwpMhK2TJZjT5xw9wMi2r0GnJw76wgkvMcFmQuVsxVrkK dJR9aiPl3/ukrimuSHjuymE92f/uQ7VlEw3nMnsMTN1IFWD6Qn6Klj0Ok oKRai8zMYtCGP7QeM4DsnRUuC6BpqxQCURqUOIUK0sfYUiIvzIJCA86qS ZicejrPxCCeiM/VSyzJRjCfJi6ndrLfzJeBpyOHPTJJXGs7iuBgkJnRiD vVgGb/zEKx5qmQbesh6xw7u8qncab;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:Subject:Content-Type; b=iczWORKKjsvmKKguVMqflL/oeWmdw23zalQzUtkF8g7LJLufdiwRWMEl 7EK71kfw5o6pDnMuj1zGze0HhvKlWJakYzABYe7BQh8YrKSJS3msiXy+Z aNOU6rgBI/KIIfiFfeJiwAEvpG2qNU9+iyY/axa2z8Byd3Q/pn06w3Z2k KJga+V4Gi5/E8WRvquMx4z4d80IKmOmb5rUy9aJpOTR5vJqNFco44KNvF 7v4uV8vwVz3JiUZoMiTVk9KTgJGK1;
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>
Organization: Fujitsu Technology Solutions
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Iceowl/1.0b1 Icedove/3.0.5
Hi,

attached patch solves a problem with vcpu-pinning and hot-plug of cpus:

If a vcpu is unpinned via

xl vcpu-pin <domain> <vcpu> all

on a system with 64 cpus and later other cpus are plugged in, this vcpu will
be restricted to the first 64 cpus of the system.

The reason is the allocation of the cpumap for pinning: the size is only for
the ACTUAL number of physical cpus in the system, not the possible number.
The solution is to allocate a cpumap for up to NR_CPUS.

Repairing xm vcpu-pin is much harder and not covered by this patch, but the
problem can be avoided by calling

xm vcpu-pin <domain> <vcpu> 0-255

instead (all is hard-wired to 0-63 now).


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

Attachment: cpumask.patch
Description: Text Data

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