Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

Re: [Xen-devel] How to query the number of vcpus?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] How to query the number of vcpus?
From: David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>
Date: Sat, 30 Apr 2005 15:09:07 +0100
Delivery-date: Sat, 30 Apr 2005 14:09:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E1DRoC6-0004dk-00@xxxxxxxxxxxxxxxxx>
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: <E1DRoC6-0004dk-00@xxxxxxxxxxxxxxxxx>
Reply-to: david.nospam.hopwood@xxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Keir Fraser wrote:
Also I'd change the appearances of the mask in the dom0 interface from:
 cpumap_t cpumap[MAX_VIRT_CPUS]
And:
 cpumap_t *cpumap
To:
 u8 vcpumask[MAX_VCPUID/8]

u8 vcpumask[MAX_VCPUID/8 + 1]

Having an array of '_t' is odd as each entry in the array is really
logically just a single bit. And I would like to separate the size of
the array at the admin interfaces from MAX_VIRT_CPUS: it would be nice
to be able to increase MAX_VIRT_CPUS without changing the admin
interface. That's why I'd add something like MAX_VCPUID (probably set
it to 256).

255 (if it's the maximum ID rather than the number of IDs).

--
David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>


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