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] tools: convert cpumap bitmap to list


On 20 Oct 2005, at 16:24, Ryan Harper wrote:

Are you interested in any modification of the cpumap to list conversion?
Or is it ok if vcpu-list shows a long list of integers?

I think an ordered list of cpus is most user-friendly, perhaps using range notation to keep it short (so, for example, mask 0x77 would print as '0-2, 4-6' rather than '0, 1, 2, 4, 5, 6'). A mask is a more succinct representation but maybe not so good for users. :-)

I would think mapping cpu % nr_cpus, throwing away duplicates would be
best.  With [0,1,2,3] and nr_cpus=2, cpumap would be [0,1].

I think Xen should ignore non-existent cpus in a cpumap. I'm not really fussed what you do with them in xend -- ignoring them there too would probably make most sense.

 -- Keir


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