linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Waiman Long <longman@redhat.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org, "Joe Mario" <jmario@redhat.com>
Subject: Re: [PATCH] x86/kvm: Don't use pvqspinlock code if only 1 vCPU
Date: Thu, 19 Jul 2018 09:34:58 -0400	[thread overview]
Message-ID: <24e1962a-075c-8168-5d95-033b826ee919@redhat.com> (raw)
In-Reply-To: <20180719011546.GB28585@char.US.ORACLE.com>

On 07/18/2018 09:15 PM, Konrad Rzeszutek Wilk wrote:
> On Tue, Jul 17, 2018 at 05:59:27PM -0400, Waiman Long wrote:
>> On a VM with only 1 vCPU, the locking fast path will always be
>> successful. In this case, there is no need to use the the PV qspinlock
>> code which has higher overhead on the unlock side than the native
>> qspinlock code.
> Why not make this global? That is for both KVM and Xen and any
> other virtualized guest that uses this?

Right, I will send another patch for Xen. The pvqspinlock code has to be
explicitly opted in. Right now, both Xen and KVM used it in the tree. I
am not sure about other out-of-tree modules. There is nothing I can do
for those.

Cheers,
Longman

      reply	other threads:[~2018-07-19 13:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-17 21:59 [PATCH] x86/kvm: Don't use pvqspinlock code if only 1 vCPU Waiman Long
2018-07-18 11:51 ` Paolo Bonzini
2018-07-19  1:15 ` Konrad Rzeszutek Wilk
2018-07-19 13:34   ` Waiman Long [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24e1962a-075c-8168-5d95-033b826ee919@redhat.com \
    --to=longman@redhat.com \
    --cc=hpa@zytor.com \
    --cc=jmario@redhat.com \
    --cc=konrad.wilk@oracle.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).