From: Keir Fraser Subject: Re: Cpu pools discussion Date: Tue, 28 Jul 2009 14:55:18 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: George Dunlap , Tim Deegan Cc: Juergen Gross , Zhigang Wang , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 28/07/2009 14:41, "George Dunlap" wrote: > As Juergen says, for people who don't use the feature, it shouldn't > have any real effect. The patch is pretty straightforward, except for > the "continue_hypercall_on_cpu()" bit. Just pulled up the patch. Actually cpupool_borrow_cpu() does not seem to lock down the cpu-pool-vcpu relationship while continue_hypercall_on_cpu() is running. In particular, it is clear that it does nothing if the vcpu is already part of the pool that the domain is running in. But then what if the cpu is removed from the pool during the borrow_cpu()/return_cpu() critical region? It hardly inspires confidence. Another thing I noted is that sched_tick_suspend/resume are pointlessly changed to take a cpu parameter, which is smp_processor_id(). I swear at the screen whenever I see people trying to slip that kind of nonsense in. It makes it look like the functions can operate on an arbitrary cpu when in fact I'll wager they cannot (and I doubt the author of such changes has checked). It's a nasty nasty interface change. -- Keir