From: Waiman Long Subject: Re: [PATCH resend] x86,kvm: Add a kernel parameter to disable PV spinlock Date: Mon, 4 Sep 2017 15:32:39 -0400 Message-ID: References: <20170904142836.15446-1-osalvador@suse.de> <20170904144011.gp7hpis6usjehbuf@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: Ingo Molnar , Paolo Bonzini , "H . Peter Anvin" , Thomas Gleixner , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org To: Peter Zijlstra , Oscar Salvador Return-path: In-Reply-To: <20170904144011.gp7hpis6usjehbuf@hirez.programming.kicks-ass.net> Content-Language: en-US Sender: linux-doc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 09/04/2017 10:40 AM, Peter Zijlstra wrote: > On Mon, Sep 04, 2017 at 04:28:36PM +0200, Oscar Salvador wrote: >> This is just a resend of Waiman Long's patch. >> I could not find why it was not merged to upstream, so I thought >> to give it another chance. >> What follows is what Waiman Long wrote. >> >> Xen has an kernel command line argument "xen_nopvspin" to disable >> paravirtual spinlocks. This patch adds a similar "kvm_nopvspin" >> argument to disable paravirtual spinlocks for KVM. This can be useful >> for testing as well as allowing administrators to choose unfair lock >> for their KVM guests if they want to. > For testing its trivial to hack your kernel and I don't feel this is > something an Admin can make reasonable decisions about. I almost forgot about this patch that I sent quite a while ago. I was sending this patch out mainly to maintain consistency between KVM and Xen. This patch is not that important to me, and that is why I didn't push it further. Cheers, Longman