[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/shim: Make PV_SHIM depend on CPU_ONLINE_OFFLINE
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Thu, 3 Dec 2026 09:28:07 +0100
- 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)
- 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-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mFa61ydZOEvYTxAuodNxnSi177oAvrdN+rD9+A2gc5DUKBtPs3C6CURTg7MuqKjuOI3aSbi8FnIurGFg6hgwjYlW8AMbXqx1R7idpwi52mivv9bZEfLyun0t0a1nZFZlm2K5HBsdZ27NlY97BzlwZeCtUGaFu8HocbBT2esz3kOJaPCDoMRy8DSjk4YcNLbCOYlkJoHGEW7Fhm/pkUXD2d3KwO5GLdtxSLt+GnpuCKV3/QmRx8y1iZKcUZECLcFN//1r2pOW0Tm8uSApoOxjG9ZCN16QyExNGXU7KAk9u3psmNtuVGHEGhjpVR8n4+FjijLPDz+4HCsSN9nZtugM0w==
- 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: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 03 Dec 2026 08:28:35 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxx>
>
> 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
|