From: Mykyta Poturai <Mykyta_Poturai@epam.com>
To: Michal Orzel <michal.orzel@amd.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger@xenproject.org>,
"Teddy Astie" <teddy.astie@vates.tech>,
Xen-devel <xen-devel-bounces@lists.xenproject.org>
Subject: Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
Date: Thu, 3 Dec 2026 08:07:46 +0000 [thread overview]
Message-ID: <DNAXZEYUFRIN.2QQNTUAB6XP9V@epam.com> (raw)
In-Reply-To: <20261203073632.84097-1-michal.orzel@amd.com>
On Thu Dec 3, 2026 at 9:36 AM EET, Michal Orzel wrote:
> PV shim calls cpu_up_helper() and cpu_down_helper() from
> pv_shim_cpu_{up,down}(). Since commit e8b34da6a098 ("Kconfig: Make cpu
> hotplug configurable"), these helpers are only built with
> CONFIG_CPU_ONLINE_OFFLINE. With this option disabled and PV_SHIM enabled
> the build fails at link time:
>
> shim.c:866: undefined reference to `cpu_up_helper'
> shim.c:899: undefined reference to `cpu_down_helper'
>
> Make PV_SHIM depend on CPU_ONLINE_OFFLINE.
>
> Fixes: e8b34da6a098 ("Kconfig: Make cpu hotplug configurable")
> Signed-off-by: Michal Orzel <michal.orzel@amd.com>
> ---
> I found this issue when re-running the failed jobs on a recent Stefano push:
> Here, the randconfig job failed:
> https://gitlab.com/xen-project/hardware/xen/-/jobs/18591389353
> ---
> xen/arch/x86/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
> index 6b5562173bed..868fab16c2ce 100644
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -291,7 +291,7 @@ config PVH_GUEST
> config PV_SHIM
> def_bool y
> prompt "PV Shim"
> - depends on PV && XEN_GUEST
> + depends on PV && XEN_GUEST && CPU_ONLINE_OFFLINE
> help
> Build Xen with a mode which acts as a shim to allow PV guest to run
> in an HVM/PVH container. This mode can only be enabled with command
Thanks for catching this.
Reviewed-by: Mykyta Poturai <mykyta_poturai@epam.com>
next prev parent reply other threads:[~2026-12-03 8:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 7:36 [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE Michal Orzel
2026-12-03 8:07 ` Mykyta Poturai [this message]
2026-12-03 8:09 ` Jan Beulich
2026-12-03 8:28 ` Orzel, Michal
2026-12-03 8:35 ` Jan Beulich
2026-12-03 8:36 ` Roger Pau Monné
2026-12-03 9:16 ` Jan Beulich
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=DNAXZEYUFRIN.2QQNTUAB6XP9V@epam.com \
--to=mykyta_poturai@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=michal.orzel@amd.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--cc=xen-devel-bounces@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.