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

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] use full-size cpumask for vcpu-pin
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 13 Aug 2010 14:15:45 +0100
Cc: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 13 Aug 2010 06:17:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19557.17517.80641.81294@xxxxxxxxxxxxxxxxxxxxxxxx>
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
Thread-index: Acs66P6ihsUYSx3hTHqLrb2bGAI6HQAAKSSB
Thread-topic: [Xen-devel] [Patch] use full-size cpumask for vcpu-pin
User-agent: Microsoft-Entourage/12.24.0.100205
On 13/08/2010 14:11, "Ian Jackson" <Ian.Jackson@xxxxxxxxxxxxx> wrote:

> Keir Fraser writes ("Re: [Xen-devel] [Patch] use full-size cpumask for
> vcpu-pin"):
>> Actually, now I look at it, I have to NACK the patch. Sorry I didn't look
>> closely enough earlier. I think the bug can be addressed without any
>> hypervisor changes: when vcpu-pinning, the tools can quite correctly pass a
>> cpumask to Xen just big enough to express just the CPUs in the new affinity
>> set. If the resulting mask is too narrow to address all CPUs in the system,
>> then Xen will pad it out with zeroes. If the resulting mask is too wide, Xen
>> will simply truncate it. All this is done silently at the time of the
>> setvcpuaffinity hypercall.
> 
> The difficulty is, as I understand it, how to express the mask "all
> CPUs present and future".  Since the number of pcpus may be very
> large.  The tools presumably shouldn't pass a kilobyte of 0xff :-).

Since Xen discards any CPUs which are not online at the time of the
setvcpuaffinity hypercall, expressing "all CPUs present and future" is a bit
pointless.

 -- Keir



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