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: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] How to query the number of vcpus?
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 1 May 2005 05:21:39 +0100
Cc: Kip Macy <kip.macy@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, christian.limpach@xxxxxxxxxxxx, Ryan Harper <ryanh@xxxxxxxxxx>
Delivery-date: Sun, 01 May 2005 04:21:16 +0000
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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVNtpLxx5M4hiMXQDGDazxhCj/CPAATm7/Q
Thread-topic: [Xen-devel] How to query the number of vcpus?
 
> > 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?

Ian

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

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