From: Juergen Gross <jgross@suse.com>
To: Marc Dionne <marc.dionne@auristor.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: x86/paravirt: Use a single ops structure
Date: Tue, 30 Oct 2018 14:50:27 +0100 [thread overview]
Message-ID: <995fc335-47f5-6884-eaee-283ad81e28b7@suse.com> (raw)
In-Reply-To: <CAB9dFdtw1_YuBXUY3Rb74WisR1iipZK+Sm60pD4cvcrYvbZb6w@mail.gmail.com>
On 30/10/2018 14:33, Marc Dionne wrote:
> On Mon, Oct 29, 2018 at 11:25 AM Juergen Gross <jgross@suse.com> wrote:
>>
>> On 29/10/2018 13:58, Marc Dionne wrote:
>>> On Tue, Oct 23, 2018 at 2:37 PM Linux Kernel Mailing List
>>> <linux-kernel@vger.kernel.org> wrote:
>>>>
>>>> Commit: 5c83511bdb9832c86be20fb86b783356e2f58062
>>>> Parent: 27876f3882fdd4acb3d3614a0133ecdc777fc292
>>>> Refname: refs/heads/master
>>>> Web: https://git.kernel.org/torvalds/c/5c83511bdb9832c86be20fb86b783356e2f58062
>>>> Author: Juergen Gross <jgross@suse.com>
>>>> AuthorDate: Tue Aug 28 09:40:19 2018 +0200
>>>> Committer: Thomas Gleixner <tglx@linutronix.de>
>>>> CommitDate: Mon Sep 3 16:50:35 2018 +0200
>>>>
>>>> x86/paravirt: Use a single ops structure
>>>>
>>>> Instead of using six globally visible paravirt ops structures combine
>>>> them in a single structure, keeping the original structures as
>>>> sub-structures.
>>>>
>>>> This avoids the need to assemble struct paravirt_patch_template at
>>>> runtime on the stack each time apply_paravirt() is being called (i.e.
>>>> when loading a module).
>>>
>>> The above commit replaces pv_lock_ops, which was EXPORT_SYMBOL, with
>>> something that is part of pv_ops, which is EXPORT_SYMBOL_GPL. When
>>> CONFIG_PARAVIRT_SPINLOCKS is set, this has the side effect of making
>>> spin_lock() unusable by out of tree modules, which will likely be an
>>> issue for many, if not most of them.
>>
>> Thanks for noticing!
>>
>> Sending a patch soon...
>>
>>
>> Juergen
>
> Thanks for the quick patch. Does this also need fixing for arm/arm64?
> I can't easily verify but it seems like it would have the same issue.
pv_lock_ops was x86 only.
Juergen
prev parent reply other threads:[~2018-10-30 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <git-mailbomb-linux-master-5c83511bdb9832c86be20fb86b783356e2f58062@kernel.org>
2018-10-29 12:58 ` Marc Dionne
2018-10-29 14:24 ` Juergen Gross
2018-10-30 13:33 ` Marc Dionne
2018-10-30 13:50 ` Juergen Gross [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=995fc335-47f5-6884-eaee-283ad81e28b7@suse.com \
--to=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=tglx@linutronix.de \
/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®