WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Ticket spinlocks and MP guests

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Ticket spinlocks and MP guests
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 15 Feb 2008 08:36:40 +0000
Delivery-date: Fri, 15 Feb 2008 00:36:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F024D8F7B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchvHZx52xVv2tsQEdyZRwAWy6hiGQAUAqPwAA+TMGsAAAamMAAAdQjM
Thread-topic: [Xen-devel] Ticket spinlocks and MP guests
User-agent: Microsoft-Entourage/11.3.6.070618
On 15/2/08 08:27, "Tian, Kevin" <kevin.tian@xxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel