All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger@xenproject.org>
To: "Orzel, Michal" <michal.orzel@amd.com>
Cc: Jan Beulich <jbeulich@suse.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	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:36:24 +0100	[thread overview]
Message-ID: <axEqCHtvmUkA8lLw@Mac.lan> (raw)
In-Reply-To: <25f9f15d-a006-49a0-b35e-3fcbbdd208ed@amd.com>

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.


  parent reply	other threads:[~2026-12-03  8:36 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
2026-12-03  8:36     ` Roger Pau Monné [this message]
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=axEqCHtvmUkA8lLw@Mac.lan \
    --to=roger@xenproject.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=michal.orzel@amd.com \
    --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.