From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hopwood Subject: Re: How to query the number of vcpus? Date: Sat, 30 Apr 2005 15:09:07 +0100 Message-ID: <42739183.7000706@blueyonder.co.uk> References: Reply-To: david.nospam.hopwood@blueyonder.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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