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 07271606A322 for ; Thu, 3 Dec 2026 08:28:44 +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=m3kCXnwf Received: from list by lists.xenproject.org with outflank-mailman.1511811.1704181 (Exim 4.92) (envelope-from ) id 1xZ2B5-00014U-6Q; Thu, 03 Dec 2026 08:28:31 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511811.1704181; Thu, 03 Dec 2026 08:28:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2B5-00014N-3q; Thu, 03 Dec 2026 08:28:31 +0000 Received: by outflank-mailman (input) for mailman id 1511811; Thu, 03 Dec 2026 08:28:29 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2B3-00014H-E6 for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 08:28:29 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZ2B2-003Cqc-0w for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 09:28:28 +0100 Received: from [10.42.69.6] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b112825-2eae-0a2a0a5409dd-0a2a4506dce6-16 for ; Thu, 03 Dec 2026 09:28:27 +0100 Received: from [52.101.61.6] (helo=DM1PR04CU001.outbound.protection.outlook.com) by tlsNG-16d1c6.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b11282a-195a-0a2a45060019-34653d06ee63-3 for ; Thu, 03 Dec 2026 09:28:27 +0100 Received: from MN2PR01CA0064.prod.exchangelabs.com (2603:10b6:208:23f::33) by DS7PR12MB8201.namprd12.prod.outlook.com (2603:10b6:8:ef::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Thu, 3 Dec 2026 08:28:22 +0000 Received: from BN2PEPF0000A98D.namprd04.prod.outlook.com (2603:10b6:208:23f:cafe::49) by MN2PR01CA0064.outlook.office365.com (2603:10b6:208:23f::33) 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 08:28:18 +0000 Received: from satlexmb08.amd.com (165.204.84.17) by BN2PEPF0000A98D.mail.protection.outlook.com (10.167.248.132) 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 08:28:18 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb08.amd.com (10.181.42.217) 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 02:28:09 -0600 Received: from [192.168.31.141] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 02:28:08 -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=mFa61ydZOEvYTxAuodNxnSi177oAvrdN+rD9+A2gc5DUKBtPs3C6CURTg7MuqKjuOI3aSbi8FnIurGFg6hgwjYlW8AMbXqx1R7idpwi52mivv9bZEfLyun0t0a1nZFZlm2K5HBsdZ27NlY97BzlwZeCtUGaFu8HocbBT2esz3kOJaPCDoMRy8DSjk4YcNLbCOYlkJoHGEW7Fhm/pkUXD2d3KwO5GLdtxSLt+GnpuCKV3/QmRx8y1iZKcUZECLcFN//1r2pOW0Tm8uSApoOxjG9ZCN16QyExNGXU7KAk9u3psmNtuVGHEGhjpVR8n4+FjijLPDz+4HCsSN9nZtugM0w== 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=MhSLRddBaPGD6lV9oEi3fZe7dfPqKpQHgL0Ou6xvR3s=; b=vEGL0R3qEQJc+Yg3qNDOUZxPnqXn74UEpOv6N/pR08bW6jS3DBCoal4/X8oupwU/MHa/wUBMgr6Nhf7h1MeEHDDb33CCa/mBFfC2G3CHi0k9pxzHG13Wwbv+RHXCeIkdSrzh6IDK2COTCxr92ZW5dP8PR+xR+jJ8Aj+FioY6EQHGRKdUXXSS1u7ZQGiiiugdxSObAJsKXihumORKz1H6ZhCQACq20nhoHwcyHBM/RPMMabEXX1rlQB84xu1DwpDINwSeUrRXe9IfwRaN50EAuFw9bc4RVbhVHMFOATTT3x7VrDszPUFg3JDikehrjYNCErmDklxCDcoVCpmrBmkZWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com 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=MhSLRddBaPGD6lV9oEi3fZe7dfPqKpQHgL0Ou6xvR3s=; b=m3kCXnwfhMg0hWMGQL/rJ11tT/XgSN5pNZ7OOq6XMqVza3FaqPbiix5J2rKhGgpzujnrs+SfK9LWnEBwN5fx8rGSf73w5HT+HO/8DN3wxvBpsRT4b/X7jV0ztRh5zf1YZvEmMxOuxe+HkW5i/NJ9JIQU9NGqzKWmlA8Wf/1lLG4= 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=satlexmb08.amd.com; pr=C Message-ID: <25f9f15d-a006-49a0-b35e-3fcbbdd208ed@amd.com> Date: Thu, 3 Dec 2026 09:28:07 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE To: Jan Beulich CC: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie , References: <20261203073632.84097-1-michal.orzel@amd.com> <0cd6f49c-3c26-4043-9596-006b4bc0a2c3@suse.com> From: "Orzel, Michal" Content-Language: en-US In-Reply-To: <0cd6f49c-3c26-4043-9596-006b4bc0a2c3@suse.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF0000A98D:EE_|DS7PR12MB8201:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b0a1174-9b1e-4516-6335-08df51176259 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|1800799024|376014|82310400026|10067099003|56012099006|261028144727099003|261022105027099003|261026121527099003|261026140227099003|261009223027099003|18002099003|22082099003|4143699003|11063799006; X-Microsoft-Antispam-Message-Info: xQO0eppiAsxGaGzj7myNVznhmWOORej0/CAcnNFQoE2c51Egy/Lq9+ttMGrIbhhQ8fUvt2lhsw9oOvnwPZNKgJKmmpVRDd6QGL+EO+bDGxxpxx30jO8vI+J4syquJQ/OXFve4Qb/JmzLxhDsDQ5mLVmbUSwI99lxXvs1j0xG0OnwhmQSALlNEyj/H0ITIaMg4GjHdUVqu2PUfAKuz8bCUAI7c2j0OVwuwW7d47WWlMGBuJI1G7dHpNQ2GypGX9Mx1ZBcm95ikhdOIUtWokBixy++BjjaO67g6m0cu2XjvBKvvdDKMYcA82wety3+FKUVUn9mExK3nBtR7E/r/pM6NSQwMi84QjhJIzaK1+TL46Pj3lwfFRYPGoKE6Q2QYhbfgsaJfPscR3B9lHN1Ys33s1R5OTMpdGIiPnAVEgDeyyQNMxbWg8DA5yPGZX5mwn0M8WfmypuRI6jxrxFT2m7F6dbdFckj8q4qi9uIBXZr8vgjxGH/8B5NIg2TvLgvyM8KnMywK0uN46hWVNWwOShMgmzDFZJ/FuoacsjWBaZ0Da1poc39E64ZWQ/mbeYnFRkvqT+b1TsG2fgiM4At8W371PNbj3J3UsEJzD+lyR4I/OiOZE6VD3ww8az7n5GzyaDtaZkoFxVmJl8zNg9IIAdCwuLtFVUnsdUTTVL4XzOU2hmTUKQlafptPBdZdEMgG8fM76SGOjUsUhKdGZhu6eUKAQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(36860700016)(1800799024)(376014)(82310400026)(10067099003)(56012099006)(261028144727099003)(261022105027099003)(261026121527099003)(261026140227099003)(261009223027099003)(18002099003)(22082099003)(4143699003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LaUO1w4pMdzskUNPbvBKqGspRuNMlfjfSgPWUfuYZ4bYOCoiHIbPS29EL5Ibd8sqhQQUbTU+Z5cJKwmrvNvWnV1+5aXrSNE0+lTs/6HIkFwgbZHPFn4H7xWEqlJIlrSkybrdJfdZepXVk77OnyBmXswZc1ItJNl0KcA8g8ELTf6bXj/OPF1swOqtWcIf7rvtEwdpaF19OuRg0Dxz7PMwIg29gRJmJ3a1DIfXaMj/2YRLgmCi6YAXHX0TVWgS5kTsUWR981Cm9T0eXTqcADTOSo34ajX3JIe5MvWFa7rSaPXOj17ouSXUQtNFsJwG0Oy+aZOkS/SJJtEn8aY1YKO5S1My8OqV+M3f/8qqji96I5v1uyTy5Kzch9SyVXzrTY1pQXIbC5AdhxfHLTj5gPcqspa6QTCaOV6xCWMWdd8QQ7D6mJFVeSpddTHH2TNaaNGM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 08:28:18.5638 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b0a1174-9b1e-4516-6335-08df51176259 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=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF0000A98D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8201 X-purgate-ID: tlsNG-16d1c6/1796286507-FDA0C77B-ECDEB84A/0/0 X-purgate-type: clean X-purgate-size: 1181 X-Spam-Status: No, score=-17.3 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,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 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 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 > > 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. ~Michal