From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752654AbbIOIiO (ORCPT ); Tue, 15 Sep 2015 04:38:14 -0400 Received: from casper.infradead.org ([85.118.1.10]:42786 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbbIOIiL (ORCPT ); Tue, 15 Sep 2015 04:38:11 -0400 Date: Tue, 15 Sep 2015 10:38:04 +0200 From: Peter Zijlstra To: Waiman Long Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch , Davidlohr Bueso Subject: Re: [PATCH v6 6/6] locking/pvqspinlock: Queue node adaptive spinning Message-ID: <20150915083804.GY16853@twins.programming.kicks-ass.net> References: <1441996658-62854-1-git-send-email-Waiman.Long@hpe.com> <1441996658-62854-7-git-send-email-Waiman.Long@hpe.com> <20150914141012.GV18489@twins.programming.kicks-ass.net> <55F721FC.4000504@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55F721FC.4000504@hpe.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2015 at 03:37:32PM -0400, Waiman Long wrote: > BTW, the queue head vCPU at pv_wait_head_and_lock() doesn't wait early, it > will spin the full threshold as there is no way for it to figure out if the > lock holder is running or not. We can know its cpu id, right? Surely we should then be able to figure out if its active or not, I'm thinking the KVM/Xen know these things somewhere.