All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.