[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Michal Orzel <michal.orzel@xxxxxxx>
- Date: Thu, 3 Dec 2026 08:36:32 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i7j1YNxj3cidJicVTOfeD80louXKEO/0FO9FwZ8AR0k=; b=dxowLR8UWCbNkB2jpTyXjz1imen6o083qP+sBcdczj0q3HJEBL3VQKFw/PDx1JIP/NpPmzE4MNZMo9KzVmVZb4baXW2TyevwmhfIlD2xj9zrH/wpCb92A6xyV26tV3hDVO+72eFSdNVIQ5Ia7N9UPlK/aK3uxexMd8XplFS5LhmOIommC7pezI+EzxVwhlv3YZxqorUj0yFmAJnh+9ZQN78jARsQVj/OU8usweMN7T7Yo/+fyEK2xMvcHTesCRWjDC9h8W3WoKLqBl8V9VpPxM5lw/UEZhDhuJAKXrINOkR5bgMaHxJWEh27i2bZaspzSaib7XxqzG9YxuQd4ADo1w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EJDFOml/9sTADFwEBneJnDcszNUehVRQuoHZMVHy49hVAorwI/Ie0y6xknCYc3OZEuY8e119vq4j5R/hTvmXcfWxH0mYac6xjNmPg1LYENThXGsPQ8a0JzYeocqR3JPvhN7PBxVBw7C0YQJHigJnFNfHdCSyvK/R9WjdpoiYecBwrT4npAwzIPT2BgjakcHdYkrvNhEVgvvN9HRmHaefaC7UKCZvT9AYRqK0IuH2xDBb9/pUMMPaqddm8I0IBwyWj5A/S9FzZDwx2X6Q40n6t1BxCqcnLDPQXUGQgKTSSczJSmJo7bMKMfaNVrsseXmnJK4w3ehbspuCZ71nggFsRg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
- Delivery-date: Thu, 03 Dec 2026 07:36:43 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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 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
|