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] How to query the number of vcpus?

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to query the number of vcpus?
From: Ryan Harper <ryanh@xxxxxxxxxx>
Date: Mon, 2 May 2005 10:21:24 -0500
Cc: Kip Macy <kip.macy@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, christian.limpach@xxxxxxxxxxxx
Delivery-date: Mon, 02 May 2005 15:22:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3E32@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3E32@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
* Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> [2005-05-02 09:07]:
>  
> > > I think so -- might as well get the interface right. I was thinking 
> > > something like the fd mask that get's passed to select, where you 
> > > sepcify the highest set bit.
> > 
> > In some cases Xen returns a cpumap to the guest (in 
> > getdomaininfo). In that case the fd mask trick won't really 
> > work as the guest needs to know in advance the biggetst map 
> > that Xen may return. Anyway, a map of
> > 256 bits is going to give us a fair amount of headroom I think.
> 
> Why do we need to ever return a cpumap to the guest? Being able to read
> CPU pining information out isn't very useful, and both CPUs and VCPUs
> can be enumerated in the normal manner. Is there something I've
> forgotten?

If I were writing a load-balancing app I'd like to know where a domains'
vcpus are pinnable.  You had previously requested the cpumap to support
setting a list of physical cpus on which a vcpu can run.  It seems odd
(to me) to allow the setting of a variable, but to not be able to see what
the current value is.  Such an interface requires me to always send a
pin operation to ensure the cpumap is set how I want since I cannot
confirm the current value.

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@xxxxxxxxxx

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

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