From: Keir Fraser Subject: Re: Cpu pools discussion Date: Tue, 28 Jul 2009 10:09:17 +0100 Message-ID: References: <4A6E8F66.1080506@ts.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A6E8F66.1080506@ts.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross , George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 28/07/2009 06:40, "Juergen Gross" wrote: > BTW: continue_hypercall_on_cpu() exists on x86 only and it isn't really much > better than my usage of it: > - remember old pinning state of current vcpu > - pin it temporarily to the cpu it should continue on > - continue the hypercall > - remove temporary pinning > - re-establish old pinning (if any) > Pretty much the same as my solution above ;-) If your solution locks the pinning, as we do already, so that it cannot be changed while the continue_hypercall_on_cpu() is running, then that is fine. If it's not locked then it's not safe. -- Keir