From: Keir Fraser Subject: Re: "cpus" config parameter broken? Date: Fri, 11 Jan 2008 00:53:47 +0000 Message-ID: References: <20080110174315406.00000003216@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080110174315406.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 11/1/08 00:43, "Dan Magenheimer" wrote: > Though it could be argued academically that "policy" doesn't > belong in the hypervisor, rejecting an attempt by the tools > to use a non-available processor isn't much different than > rejecting an SSE3 instruction on a non-SSE3 processor. > (In other words, it's really processor enforcement mechanism.) > So I like #2. #1 would be OK too. I just don't like the > current muddle which has already led to misunderstandings > and inconsistent implementations in the current toolchain. Yes, probably we should not return an error if ANDing with online_map returns an empty set, and instead we should do some fallback (like ignore affinity altogether). This is what we would have to do in a cpu hot-unplug case, where that unplugged cpu was the only cpu in some vcpu's affinity map. Either that or fail the CPU hot-unplug, I suppose. -- Keir