From: Borislav Petkov <bp@alien8.de>
To: Hou Wenlong <houwenlong.hwl@antgroup.com>
Cc: linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Juergen Gross <jgross@suse.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Peter Zijlstra <peterz@infradead.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
K Prateek Nayak <kprateek.nayak@amd.com>,
Li Chen <chenl311@chinatelecom.cn>,
Brian Gerst <brgerst@gmail.com>,
Sohil Mehta <sohil.mehta@intel.com>,
Tim Chen <tim.c.chen@linux.intel.com>,
Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>,
Eric Dumazet <edumazet@google.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 1/2] x86/smp: Move the static call update for 'smp_ops' into smp_prepare_boot_cpu()
Date: Thu, 22 Jan 2026 15:21:56 +0100 [thread overview]
Message-ID: <20260122142156.GEaXIyhNQeGvOR5yyu@fat_crate.local> (raw)
In-Reply-To: <b5e3f1d674af21c1592eab3ce8cc7dc93f9a7dad.1769090885.git.houwenlong.hwl@antgroup.com>
On Thu, Jan 22, 2026 at 10:15:43PM +0800, Hou Wenlong wrote:
> The commit 1f60230cdc63 ("x86/smp: Use static_call for
> arch_send_call_function_ipi()") changed to use a static call for
> arch_send_call_function_ipi(), which causes two problems:
>
> First, the KVM guest also changes 'smp_ops.send_call_func_ipi' when the
> PV sched yield feature is available. However, the missing
> static_call_update() breaks the PV sched yield feature.
>
> Additionally, xen_smp_init() is called before static_call_init() during
> the booting of the XENPV guest, which triggers a warning in
> __static_call_update().
>
> To simplify, move the static call update for 'smp_ops' into
> smp_prepare_boot_cpu() to address these two problems together.
>
> Fixes: 1f60230cdc63 ("x86/smp: Use static_call for arch_send_call_function_ipi()")
> Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
> ---
> I'm not sure if the XEN part is okay or not. I think there should be no
> IPI before smp_prepare_boot_cpu(), and even if there is, it's okay for
> the KVM guest to use the native version before smp_prepare_boot_cpu().
All three commits zapped from tip:x86/core.
We can try again once this is resolved.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
next prev parent reply other threads:[~2026-01-22 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 14:15 Hou Wenlong
2026-01-22 14:15 ` [PATCH 2/2] x86/smp: Don't export x86_smp_ops_static_call_update() Hou Wenlong
2026-01-22 14:21 ` Borislav Petkov [this message]
2026-01-23 3:04 ` [PATCH 1/2] x86/smp: Move the static call update for 'smp_ops' into smp_prepare_boot_cpu() Hou Wenlong
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=20260122142156.GEaXIyhNQeGvOR5yyu@fat_crate.local \
--to=bp@alien8.de \
--cc=boris.ostrovsky@oracle.com \
--cc=brgerst@gmail.com \
--cc=chenl311@chinatelecom.cn \
--cc=dave.hansen@linux.intel.com \
--cc=edumazet@google.com \
--cc=houwenlong.hwl@antgroup.com \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=patryk.wlazlyn@linux.intel.com \
--cc=peterz@infradead.org \
--cc=rafael.j.wysocki@intel.com \
--cc=sohil.mehta@intel.com \
--cc=tglx@kernel.org \
--cc=tim.c.chen@linux.intel.com \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.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®