Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCD7E606A322 for ; Thu, 3 Dec 2026 07:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=1rD8hI2w Received: from list by lists.xenproject.org with outflank-mailman.1511666.1704064 (Exim 4.92) (envelope-from ) id 1xZ1Mx-0002H0-2s; Thu, 03 Dec 2026 07:36:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511666.1704064; Thu, 03 Dec 2026 07:36:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ1Mx-0002Gt-0E; Thu, 03 Dec 2026 07:36:43 +0000 Received: by outflank-mailman (input) for mailman id 1511666; Thu, 03 Dec 2026 07:36:42 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ1Mv-0002Gn-Oc for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 07:36:42 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZ1Mv-00Eyjz-15 for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 08:36:41 +0100 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b111c04-2eae-0a2a0a5409dd-0a2a4507d6a2-16 for ; Thu, 03 Dec 2026 08:36:40 +0100 Received: from [52.101.52.68] (helo=BL2PR02CU003.outbound.protection.outlook.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b111c07-b4ea-0a2a45070019-346534440db3-3 for ; Thu, 03 Dec 2026 08:36:40 +0100 Received: from SJ2P220CA0011.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:5da::15) by SA3PR12MB9092.namprd12.prod.outlook.com (2603:10b6:806:37f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Thu, 3 Dec 2026 07:36:36 +0000 Received: from SJ1PEPF00002315.namprd03.prod.outlook.com (2603:10b6:a03:5da:cafe::7) by SJ2P220CA0011.outlook.office365.com (2603:10b6:a03:5da::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.12 via Frontend Transport; Thu, 3 Dec 2026 07:36:35 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by SJ1PEPF00002315.mail.protection.outlook.com (10.167.242.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 07:36:35 +0000 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 01:36:35 -0600 Received: from APPOL-18KY0J4.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 01:36:34 -0600 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" 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" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EJDFOml/9sTADFwEBneJnDcszNUehVRQuoHZMVHy49hVAorwI/Ie0y6xknCYc3OZEuY8e119vq4j5R/hTvmXcfWxH0mYac6xjNmPg1LYENThXGsPQ8a0JzYeocqR3JPvhN7PBxVBw7C0YQJHigJnFNfHdCSyvK/R9WjdpoiYecBwrT4npAwzIPT2BgjakcHdYkrvNhEVgvvN9HRmHaefaC7UKCZvT9AYRqK0IuH2xDBb9/pUMMPaqddm8I0IBwyWj5A/S9FzZDwx2X6Q40n6t1BxCqcnLDPQXUGQgKTSSczJSmJo7bMKMfaNVrsseXmnJK4w3ehbspuCZ71nggFsRg== 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-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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i7j1YNxj3cidJicVTOfeD80louXKEO/0FO9FwZ8AR0k=; b=1rD8hI2whWK9BRJ8Pi5uyvAfsl02Wk9FAmXdKJZovzlLzcKqvHkli7TPKY2+FqSwJkddvzjuVz3ViVICwiIe1HbGM9JN9y13QIV1zfRfyEmOk4VBVyFAH7S2jP5U/uRzxEVmI8+zhrU8UjywpqPUZzkZGVpLdx52o18pxSmGVmc= X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Michal Orzel To: CC: Michal Orzel , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Teddy Astie Subject: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE Date: Thu, 3 Dec 2026 08:36:32 +0100 Message-ID: <20261203073632.84097-1-michal.orzel@amd.com> X-Mailer: git-send-email 2.43.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00002315:EE_|SA3PR12MB9092:EE_ X-MS-Office365-Filtering-Correlation-Id: b31797ce-22a1-4c9f-6848-08df511028e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|1800799024|376014|23010399003|82310400026|56012099006|260925022911599003|260925021911599003|260925021311599003|261021123027099003|261026140227099003|261026121527099003|261021121427099003|261022105027099003|261028144727099003|261102123227099003|10067099003|261009223027099003|11063799006|18002099003|13003099007; X-Microsoft-Antispam-Message-Info: Hn08W2gjnXJFAyH+pW5NkC9FjGCGDtJXOmpbJxwA/cnGQ8mzOV5khYIebLFtfrtZAlAbTI58X9cugRFtxrR0qxcUrwxYQ0leBcp8qELKAoodzMecNAkDGdYHXe5Cho71o0I41FfjZnqq06fQG7jBrgVhHX7+RPzSiUplUGWwz8hIqNERqMjzCt2Vlr0ieI8FeIr0Mo0F5YoPgGc8eKdU+Wa2S4erVfmX3uvSvsFVGV7OxfScUv8FfuXuhA9K69AaaDwvB4xNa8E8c5useu8dUrhKNIBV5P8XO+0y8pb++Dr/YuZ7H4U/Q1Xe2Sk/E4gtJex/+cxQ9fXMPTT0q4vQYICFpn5MpU9IgptLxER3nWRns8aDGtmdHzeinYAeDtbnUnYX7Avla+El/d+SvHltkSxXldmOCrqwI1YTTKpaHFIRgqzW4mkCFAE5rztAaG+DJZ+0JrvmfJNGLWIpkWfEK6nXpkVGMLbg0Dgk2InbugfTwVYKUxUUQ6nR5YCH5EIK9B6Zt0VUVnaH0RKNsFAXox96UOxA+IEJNJVSY2L5I9XUfYgb4dvv0NJkJiYsHXKH7BgVjtMJ5aaMlEwHXvdKSgyEc8Q6mpG4lYwnYd3yhKtkBoTplIpbzCTIoC37z2mTEMCk7UjH3aZf3eueSD5WPQBB5qkLqefyhS0+WHrS6InCISoiXinYDAae++1WR/ifAmIwS4/bhhN96bcHvfTMzg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(1800799024)(376014)(23010399003)(82310400026)(56012099006)(260925022911599003)(260925021911599003)(260925021311599003)(261021123027099003)(261026140227099003)(261026121527099003)(261021121427099003)(261022105027099003)(261028144727099003)(261102123227099003)(10067099003)(261009223027099003)(11063799006)(18002099003)(13003099007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ooVYX308Y3hn8DvggNav1cd/IpUytjX/e3XA/7rz5acEaa5z41F4AD/s3He3/NoB7MqiHZ9svF/EoXhK5DAEzRXddIvbqsXP2YFRsds9FrZtK4yEOeYbtPnYGNDS/I6ONrk8FUVsBuX3QVWjKUFZ8n5UDk1nDsrpLHLzj8G30SC5UG75uJugwcbKIUXU9TIwu/c5NrknXiTi/JjECrynRU4808SXXS3AS9gXFfgiSyQDGEk60Gk67t8v6QSR0kVzF222hfSrDG2M1FAZP12gqwoF6jw9oBmSM78zK0YiRkc3Dqo86QmmxJUMkBsyKKHfvY1zjQUqxUWypLh2oTk/PaIpcDy2ian6w8LYIzYU2uHXJsh9PjuXCUNt8l8oz6PD0AZuuQ/ad0NbrVEP9IWCXAVxWuJRrI0Dm/TpMRqJFgJpIp3/WNnCMMuB+v79Gba1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 07:36:35.6368 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b31797ce-22a1-4c9f-6848-08df511028e5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00002315.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB9092 X-purgate-ID: tlsNG-ef75cf/1796283400-A68D9AE4-7D7603A6/0/0 X-purgate-type: clean X-purgate-size: 1331 X-Spam-Status: No, score=-23.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 --- 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