From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raghavendra K T Subject: Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock Date: Fri, 21 Feb 2014 01:02:08 +0530 Message-ID: <53065838.90102@linux.vnet.ibm.com> References: <1392669684-4807-1-git-send-email-Waiman.Long@hp.com> <53029167.4060109@zytor.com> <20140218073111.GW27965@twins.programming.kicks-ass.net> <5303B4C4.2040907@hp.com> <20140218212827.GR14089@laptop.programming.kicks-ass.net> <5303FDEC.9060001@hp.com> <20140219085107.GG27965@twins.programming.kicks-ass.net> <53050501.3070101@hp.com> <5306413F.3010106@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from e28smtp09.in.ibm.com ([122.248.162.9]:39677 "EHLO e28smtp09.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932097AbaBTT0N (ORCPT ); Thu, 20 Feb 2014 14:26:13 -0500 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Feb 2014 00:56:11 +0530 In-Reply-To: <5306413F.3010106@hp.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Waiman Long Cc: Linus Torvalds , Peter Zijlstra , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Arnd Bergmann , "linux-arch@vger.kernel.org" , the arch/x86 maintainers , Linux Kernel Mailing List , Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , Rik van Riel , "Paul E. McKenney" , George Spelvin , Tim Chen , Daniel J Blueman , Alexander Fyodorov , Aswin Chandramouleeswaran , Scott J Norton , Thavatchai On 02/20/2014 11:24 PM, Waiman Long wrote: > Now the key is how to detect if a kernel is really running in a PV > environment. I need to ask some virtualization experts on that. > For kvm you could just follow, kvm_spinlock_init_jump() and KVM_FEATURE_* encoding in cpuid part __do_cpuid_ent(). From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp09.in.ibm.com ([122.248.162.9]:39677 "EHLO e28smtp09.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932097AbaBTT0N (ORCPT ); Thu, 20 Feb 2014 14:26:13 -0500 Received: from /spool/local by e28smtp09.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Feb 2014 00:56:11 +0530 Message-ID: <53065838.90102@linux.vnet.ibm.com> Date: Fri, 21 Feb 2014 01:02:08 +0530 From: Raghavendra K T MIME-Version: 1.0 Subject: Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock References: <1392669684-4807-1-git-send-email-Waiman.Long@hp.com> <53029167.4060109@zytor.com> <20140218073111.GW27965@twins.programming.kicks-ass.net> <5303B4C4.2040907@hp.com> <20140218212827.GR14089@laptop.programming.kicks-ass.net> <5303FDEC.9060001@hp.com> <20140219085107.GG27965@twins.programming.kicks-ass.net> <53050501.3070101@hp.com> <5306413F.3010106@hp.com> In-Reply-To: <5306413F.3010106@hp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Waiman Long Cc: Linus Torvalds , Peter Zijlstra , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Arnd Bergmann , "linux-arch@vger.kernel.org" , the arch/x86 maintainers , Linux Kernel Mailing List , Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , Rik van Riel , "Paul E. McKenney" , George Spelvin , Tim Chen , Daniel J Blueman , Alexander Fyodorov , Aswin Chandramouleeswaran , Scott J Norton , Thavatchai Makphaibulchoke Message-ID: <20140220193208.9zncD6dkD7ONNRFt_qGBlGx33ib7q92O_8bDwRogJiI@z> On 02/20/2014 11:24 PM, Waiman Long wrote: > Now the key is how to detect if a kernel is really running in a PV > environment. I need to ask some virtualization experts on that. > For kvm you could just follow, kvm_spinlock_init_jump() and KVM_FEATURE_* encoding in cpuid part __do_cpuid_ent().