* [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
@ 2026-12-03 7:36 Michal Orzel
2026-12-03 8:07 ` Mykyta Poturai
2026-12-03 8:09 ` Jan Beulich
0 siblings, 2 replies; 7+ messages in thread
From: Michal Orzel @ 2026-12-03 7:36 UTC (permalink / raw)
To: xen-devel
Cc: Michal Orzel, Jan Beulich, Andrew Cooper, Roger Pau Monné,
Teddy Astie
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
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
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
1 sibling, 0 replies; 7+ messages in thread
From: Mykyta Poturai @ 2026-12-03 8:07 UTC (permalink / raw)
To: Michal Orzel, xen-devel@lists.xenproject.org
Cc: Jan Beulich, Andrew Cooper, Roger Pau Monné, Teddy Astie,
Xen-devel
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>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
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
1 sibling, 1 reply; 7+ messages in thread
From: Jan Beulich @ 2026-12-03 8:09 UTC (permalink / raw)
To: Michal Orzel; +Cc: Andrew Cooper, Roger Pau Monné, Teddy Astie, xen-devel
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?
Jan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
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é
0 siblings, 2 replies; 7+ messages in thread
From: Orzel, Michal @ 2026-12-03 8:28 UTC (permalink / raw)
To: Jan Beulich; +Cc: Andrew Cooper, Roger Pau Monné, Teddy Astie, xen-devel
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.
~Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
2026-12-03 8:28 ` Orzel, Michal
@ 2026-12-03 8:35 ` Jan Beulich
2026-12-03 8:36 ` Roger Pau Monné
1 sibling, 0 replies; 7+ messages in thread
From: Jan Beulich @ 2026-12-03 8:35 UTC (permalink / raw)
To: Orzel, Michal; +Cc: Andrew Cooper, Roger Pau Monné, Teddy Astie, xen-devel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
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
1 sibling, 1 reply; 7+ messages in thread
From: Roger Pau Monné @ 2026-12-03 8:36 UTC (permalink / raw)
To: Orzel, Michal; +Cc: Jan Beulich, Andrew Cooper, Teddy Astie, xen-devel
On Thu, Dec 03, 2026 at 09:28:07AM +0100, 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.
I would go with select, so that a user doesn't have to enable
CPU_ONLINE_OFFLINE to see PV_SHIM. It's a non-trivial connection to
make.
Thanks, Roger.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
2026-12-03 8:36 ` Roger Pau Monné
@ 2026-12-03 9:16 ` Jan Beulich
0 siblings, 0 replies; 7+ messages in thread
From: Jan Beulich @ 2026-12-03 9:16 UTC (permalink / raw)
To: Orzel, Michal; +Cc: Andrew Cooper, Teddy Astie, xen-devel, Roger Pau Monné
On 03.12.2026 09:36, Roger Pau Monné wrote:
> On Thu, Dec 03, 2026 at 09:28:07AM +0100, 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.
>
> I would go with select, so that a user doesn't have to enable
> CPU_ONLINE_OFFLINE to see PV_SHIM. It's a non-trivial connection to
> make.
And with the adjustment (no need to re-submit):
Acked-by: Jan Beulich <jbeulich@suse.com>
Jan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-03 9:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-12-03 8:36 ` Roger Pau Monné
2026-12-03 9:16 ` Jan Beulich
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.