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?


On 30 Apr 2005, at 19:03, Ian Pratt wrote:

cpumap_t is a reasonable name as at least it won't conflict
with type names internal to Xen.

However, why pass a pointer to a cpumap_t into PINCPU? And
should we cater now for systems with too many cpus to be
represented by a long?

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.

 -- Keir


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