From: Keir Fraser Subject: Re: Ticket spinlocks and MP guests Date: Fri, 15 Feb 2008 08:36:40 +0000 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: "Tian, Kevin" , Espen Skoglund , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 15/2/08 08:27, "Tian, Kevin" wrote: >> Side effect of ticket-based locks, or pv'ed sleeping locks? >> >> -- Keir >> > > Side effect about pv'ed sleeping locks, since originally maybe > dozens of cycles are used to spin lock while pv'ed locks force > hypercall to Xen and may even require owner with another > unlock hypercall to notify back? You would of course spin for a while and only then sleep. That's a standard mutex implementation trick. -- Keir