From: Jan Beulich <jbeulich@suse.com>
To: "Orzel, Michal" <michal.orzel@amd.com>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger@xenproject.org>,
"Teddy Astie" <teddy.astie@vates.tech>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
Date: Thu, 3 Dec 2026 09:35:12 +0100 [thread overview]
Message-ID: <abbc464a-475f-4eca-b5e7-88284aff5c3d@suse.com> (raw)
In-Reply-To: <25f9f15d-a006-49a0-b35e-3fcbbdd208ed@amd.com>
On 03.12.2026 09:28, Orzel, Michal wrote:
> On 03-Dec-26 09:09, Jan Beulich wrote:
>> On 03.12.2026 08:36, 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 was tempted to give this an ack right away, but then I wondered:
>>
>>> --- 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
>>
>> Might this not better be a select in this particular case?
> It's up to you. I can do either way because I don't have any preference here.
To a person configuring Xen (for purely-shim, or for with-shim) it may not
be obvious that this extra setting needs enabling manually. Hence why I
think "select" would be better here. (I'm inclined to say that the same may,
perhaps to a lesser degree, also be true for PV and XEN_GUEST.) Let's see if
other x86 maintainers have a different view (without waiting for too long).
Jan
next prev parent reply other threads:[~2026-12-03 8:35 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
2026-12-03 8:09 ` Jan Beulich
2026-12-03 8:28 ` Orzel, Michal
2026-12-03 8:35 ` Jan Beulich [this message]
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=abbc464a-475f-4eca-b5e7-88284aff5c3d@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=michal.orzel@amd.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--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.