From: Juergen Gross <jgross@suse.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com,
tglx@linutronix.de, mingo@redhat.com, arnd@arndb.de,
peterz@infradead.org, Dou Liyang <douly.fnst@cn.fujitsu.com>
Subject: Re: [PATCH] paravirt/locks: avoid modifying static key before jump_label_init()
Date: Fri, 27 Oct 2017 11:21:31 +0200 [thread overview]
Message-ID: <187967ca-a700-b770-90fe-ae8cd294b0d1@suse.com> (raw)
In-Reply-To: <20171027084312.k2ay4pfh6h3ajatn@gmail.com>
On 27/10/17 10:43, Ingo Molnar wrote:
>
> * Juergen Gross <jgross@suse.com> wrote:
>
>> Don't try to set the static virt_spin_lock_key to a value before
>> jump_label_init() has been called, as this will result in a WARN().
>>
>> Solve the problem by introducing a new lock_init() hook called after
>> jump_label_init() instead of doing the call inside of
>> smp_prepare_boot_cpu().
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>> Based on kernel/git/tip/tip.git locking/core
>
> Just a quick ping: what's the conclusion of the discussion, do we want this patch
> as-is?
Dou Liyang (CC-ed) suggested another alternative he wanted to test. This
would be much less intrusive. I can send a patch based on his idea in
case he doesn't react in time: he basically suggested moving the call of
native_pv_lock_init() to native_smp_prepare_cpus() - this will need
another small adaption in Xen, but this is really simple.
> Also, it's unclear from the changelog under what circumstances this bug was
> observed and what symptoms there are and how severe the bug - can the warning
> trigger on vanilla v4.14?
No, the patch introducing the bug is in the tip tree only.
Juergen
next prev parent reply other threads:[~2017-10-27 9:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-23 13:49 Juergen Gross
2017-10-25 4:26 ` Dou Liyang
2017-10-25 6:58 ` Juergen Gross
2017-10-25 7:35 ` Dou Liyang
2017-10-25 7:51 ` Juergen Gross
2017-10-25 8:06 ` Dou Liyang
2017-10-27 8:43 ` Ingo Molnar
2017-10-27 9:21 ` Juergen Gross [this message]
2017-10-27 9:38 ` Dou Liyang
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=187967ca-a700-b770-90fe-ae8cd294b0d1@suse.com \
--to=jgross@suse.com \
--cc=arnd@arndb.de \
--cc=douly.fnst@cn.fujitsu.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--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®