[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 3/6] Kconfig: Make cpu hotplug configurable


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Wed, 8 Apr 2026 12:21:04 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • 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=6ycUemd65Zi6yMgxClzlDFk4gfLidocGUJuNo4LCHZY=; b=QKKQ2jozvKvtg0qLweLLE8dxOWB8cOrDc+Y3Iv/j334jj0sI8UKKNxUcHWUT7H9yMAIVOhhSc1AiMdtEewByMB5ZPFI74wvBUdkGX5zYMS9S8ymm7hEYRjtgako70r8VTXlV2E7MOTMaI1odNOlPb4zAUDxMo29YoMKv/5aWuuzBqdqkQnk/MQTcFYLbwK/3L2r0/ArXClIolu41ovG0/osBtEwZ9oGm6pBvbKzA7/hafG2zWsThNz/zeqqNhObKMx7Af8vXIqlYHy0pjZglqK0bIwCSTMigqqWwPbNwFbmBef9n/182dETnuPcgS8wQuS9fQjA31JlIwLZVnOPh6g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=otrIIgmav8Z+OnqSmKw0+XsOrCFgfeJ2bmAUq3cQhvP+Wvi5ypzAGrfwG7bAnvWEkf18pOR/L8bqftVBZdmMdXhmy7089X4bPhjIZAECZKrUMNtkXm+BPTgKUCVZKUqTh52EPkwHN0j5xlCyAn0bQ14LEHJ/LkZciqPedqxfABUvVPFqo8P3+xuNxBvD/O9gcbslRyP0F7ZoZ5u+BPTG+4Qg397O+B9rkXZksyWSIGOVzq+PgpmQ92SaAHPklZWCu6bhQXQ6pAOo5VP6NRLg/o5odtrz/5RwlB+ZTNUjF4yey3B3fuctB6jBQmLKpPpkM+Treusl7inw2Oq8ihoy3Q==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 08 Apr 2026 12:21:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcwDy29LsBHsG5wEG6AuodBSMA4bXG/lkAgA4lgoA=
  • Thread-topic: [PATCH v7 3/6] Kconfig: Make cpu hotplug configurable

On 3/30/26 15:19, Jan Beulich wrote:
> On 30.03.2026 13:59, Mykyta Poturai wrote:
>> For the purposes of certification, we want as little code as possible to
>> be unconditionally compiled in. Make CPU hotplug and SMT operations
>> configurable to ease the process. This will also help with introducing
>> CPU hotplug on Arm, where it needs to be configurable.
>>
>> Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
> 
> Looks largely okay from a technical pov; one nit and one (repeated) remark
> below.
> 
>> --- a/xen/arch/x86/sysctl.c
>> +++ b/xen/arch/x86/sysctl.c
>> @@ -53,6 +53,11 @@ static long cf_check smt_up_down_helper(void *data)
>>       unsigned int cpu, sibling_mask = boot_cpu_data.x86_num_siblings - 1;
>>       int ret = 0;
>>   
>> +    if ( !IS_ENABLED(CONFIG_CPU_HOTPLUG) )
>> +    {
>> +        ASSERT_UNREACHABLE();
>> +        return -EOPNOTSUPP;
>> +    }
>>       opt_smt = up;
> 
> Another blank line above this one perhaps?
> 
>> --- a/xen/common/Kconfig
>> +++ b/xen/common/Kconfig
>> @@ -637,6 +637,14 @@ config SYSTEM_SUSPEND
>>   
>>        If unsure, say N.
>>   
>> +config CPU_HOTPLUG
>> +    bool "CPU online/offline support"
>> +    depends on X86
>> +    default y
>> +    help
>> +      Enable support for bringing CPUs online and offline at runtime. On
>> +      X86 this is required for disabling SMT.
> 
> The name of this option may need input from others; I'm not quite convinced
> that this is a good name, as there's no true "hot-plugging" involved here.
> IOW I fear the present name is misleading.
> 
> Jan

My first idea was "CONFIG_RUNTIME_CPU_CONTROL" I can switch back to it.

-- 
Mykyta

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.