From: Keir Fraser Subject: Re: "cpus" config parameter broken? Date: Thu, 10 Jan 2008 22:55:30 +0000 Message-ID: References: <20080110155321125.00000003216@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080110155321125.00000003216@djm-pc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "dan.magenheimer@oracle.com" , Ian Pratt , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 10/1/08 22:53, "Dan Magenheimer" wrote: >> That doesn't play nicely with CPU hotplug (not supported yet, >> but could well >> be in future) where the online_map could be continually >> changing. The model >> I'm aiming for in Xen is to remember all the CPUs requested by the >> toolstack, but only schedule onto the subset that are >> actually online right >> now (obviously). The implementation of this is of course >> quite simple given >> the CPU hotplug is not supported right now. > > Agreed, but even with CPU hotplug there will be some max_pcpu value > on any given machine. That's why I said "non-existent processor" > in the proposal even though you said "offline processor". You mean CPUs beyond NR_CPUS? All the cpumask iterators are careful not to return values beyond NR_CPUS, regardless of what stray bits lie beyond that range in the longword bitmap. -- Keir