mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Arnd Bergmann <arnd@arndb.de>,
	linux-kernel@vger.kernel.org, x86@kernel.org,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	kernel-team@meta.com
Subject: Re: [PATCH] x86,spinlock: make disabling virt_spin_lock_key contingent on CONFIG_PARAVIRT
Date: Tue, 16 Jul 2024 11:41:23 +0200	[thread overview]
Message-ID: <3e8f7fd6-72d1-41dd-a7d9-914d7f73c46c@suse.com> (raw)
In-Reply-To: <20240715131853.313c3bae@imladris.surriel.com>

On 15.07.24 19:18, Rik van Riel wrote:
> The existence of virt_spin_lock_key is contingent only on CONFIG_PARAVIRT, not
> on CONFIG_PARAVIRT_SPINLOCKS.
> 
> As a result, a kernel with CONFIG_PARAVIRT enabled, but CONFIG_PARAVIRT_SPINLOCKS
> disabled will end up disabling queued spinlocks when running on bare metal.
> 
> Making the disabling of virt_spin_lock_key contingent on CONFIG_PARAVIRT, which
> controls whether the key exists, results in queued spinlocks being enabled on
> bare metal again.
> 
> Signed-off-by: Rik van Riel <riel@surriel.com>
> Cc: stable@vger.kernel.org
> Fixes: ce0a1b608bfc ("x86/paravirt: Silence unused native_pv_lock_init() function warning")

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen


      reply	other threads:[~2024-07-16  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-15 17:18 Rik van Riel
2024-07-16  9:41 ` Jürgen Groß [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=3e8f7fd6-72d1-41dd-a7d9-914d7f73c46c@suse.com \
    --to=jgross@suse.com \
    --cc=arnd@arndb.de \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=riel@surriel.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

all inboxes | Powered by JetHome®