From: "H. Peter Anvin" Subject: Re: [PATCH 00/20] x86: ticket lock rewrite and paravirtualization Date: Mon, 15 Nov 2010 12:03:27 -0800 Message-ID: <4CE1920F.5000509@zytor.com> References: <4CDDBBD3.5050903@zytor.com> <4CDDBCE4.80906@goop.org> <4CDDBDB5.8000800@zytor.com> <4CE1915F.60507@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CE1915F.60507@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Xen-devel , Mathieu Desnoyers , Peter Zijlstra , Srivatsa Vaddagiri , Linux Kernel Mailing List , Jan Beulich , Linux Virtualization , Avi Kivity List-Id: xen-devel@lists.xenproject.org On 11/15/2010 12:00 PM, Jeremy Fitzhardinge wrote: > > Another approach I discussed with PeterZ and Mathieu is to steal the LSB > of the ticket counters (halving the max CPU count) to use as a "there is > someone in slowpath waiting on this lock". But I haven't spent the time > to work out an algorithm to maintain that flag (or flags, since there > are bits available) in a correct and efficient way. > Definitely worth pondering. -hpa