|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
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@xxxxxxx>
> >
> > 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.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |