Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DFED1CF65D9 for ; Mon, 26 Jan 2026 10:32:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1213531.1523993 (Exim 4.92) (envelope-from ) id 1vkJtA-00061G-O0; Mon, 26 Jan 2026 10:32:08 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1213531.1523993; Mon, 26 Jan 2026 10:32:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vkJtA-000619-LE; Mon, 26 Jan 2026 10:32:08 +0000 Received: by outflank-mailman (input) for mailman id 1213531; Mon, 26 Jan 2026 10:32:07 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vkJt9-000613-FT for xen-devel@lists.xenproject.org; Mon, 26 Jan 2026 10:32:07 +0000 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azlp170100001.outbound.protection.outlook.com [2a01:111:f403:c110::1]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 40c27301-faa2-11f0-b15f-2bf370ae4941; Mon, 26 Jan 2026 11:32:06 +0100 (CET) Received: from BL1P223CA0018.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::23) by LV3PR12MB9166.namprd12.prod.outlook.com (2603:10b6:408:19c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9520.6; Mon, 26 Jan 2026 10:31:59 +0000 Received: from BL6PEPF0001AB4D.namprd04.prod.outlook.com (2603:10b6:208:2c4:cafe::a6) by BL1P223CA0018.outlook.office365.com (2603:10b6:208:2c4::23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.16 via Frontend Transport; Mon, 26 Jan 2026 10:31:45 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by BL6PEPF0001AB4D.mail.protection.outlook.com (10.167.242.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Mon, 26 Jan 2026 10:31:59 +0000 Received: from satlexmb10.amd.com (10.181.42.219) 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.17; Mon, 26 Jan 2026 04:31:59 -0600 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Mon, 26 Jan 2026 04:31:59 -0600 Received: from [10.252.147.171] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Mon, 26 Jan 2026 04:31:57 -0600 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 40c27301-faa2-11f0-b15f-2bf370ae4941 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dOUXqN5Z3OOElaVcMN60Bfnn8JsrgpDXRqYHvYqjsiD084LH0eJmxA8xAsX+cSwkeZ/n1YIxrq3qbF1Rjcprbjuk/OnPJHE4P5oBbeS2d4RW62KqvYx6cDcRnpgm4k9cu54QqJnHXwbA66864fiQCExEcZYJm2y6TAhqUz5mwyzeZ4BuY3Dyaq199bh+5LjUDDZ/7Us9paIzFnB+VLtb7Aw4EpRzIq/8Ts/L9WrEUjpCRLOLGD8sJhO4ILqPjvwT5ReDE1ogMppaGOzhpOuPJ7kwKEBzBlwwAXGhZrecNQwDilUaNRBkFKUQ1CxRN5R4G8NLRX/XqSgv7z+WLIbJBA== 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=9hax5IQVpzAukgGgzVYkk6unbzvHGMAyZVzacTxzeBA=; b=x5/BxbysGJZC4kYbuUxCU1i8HNK3En7UEBu0PGjHq4G9biywKZ+590663P17JWqjyK6S9YC9wxUxg3mwY0P+ya95sJYSNr08CJolQXVWveM30Vs7vQZ99YOgr9BaIUhkpMFdmBEj1k2VYQ4SOPfPdAa7JP26wz5a8fxNgI69Dk7yDLSz4lYmlXQXvxFdWCSwVmmaEz/elDNsswMrKnduUBHTyB8Hta525yCNF6c2I5MWVh122mLn0qWbHnUQWaA+iTGxhJys3X3fgQTVRFBPyzPLFUasswQpENPlkk9z4YJ4ueyZSpiCnzHfIfjE9IOUurN7P0Sfq5oEUEODNsZ0vQ== 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=9hax5IQVpzAukgGgzVYkk6unbzvHGMAyZVzacTxzeBA=; b=MGWj9trIBJsen1zFic334/8xiN3dwoSWYws2d/YNfn5WX4hyfJWKrNLPNPRSZEHz+SGUQfPrDXPp1DUJ2WHY4MRCcjEdvZK4irz1tImAPE5ZMInufTMsMhXFfzYiab4yT8AGo+mFowYuK7sHsd3NRT7NBO7gsL7G6LRX72mDMfw= X-MS-Exchange-Authentication-Results: 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 Message-ID: <2a4e34cd-dc68-45fb-9646-eb9a0d4929eb@amd.com> Date: Mon, 26 Jan 2026 11:31:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] kconfig: adjust NR_CPUS defaults To: Jan Beulich CC: Andrew Cooper , Julien Grall , Stefano Stabellini , Anthony PERARD , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Oleksii Kurochko , "xen-devel@lists.xenproject.org" References: <1caed635-3d9b-47ed-b8fb-d6c391293059@suse.com> <6f4901b7-3121-4dce-bdeb-da3644e719c3@suse.com> From: "Orzel, Michal" Content-Language: en-US In-Reply-To: <6f4901b7-3121-4dce-bdeb-da3644e719c3@suse.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4D:EE_|LV3PR12MB9166:EE_ X-MS-Office365-Filtering-Correlation-Id: a698c4fa-b8ac-4e3b-97e4-08de5cc6233f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RG0vU2JEUVlQYUY3VEdVY1ZPVk9INz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FhlWnZn?= =?utf-8?B?U1pwdnJlcVZEUGJBSnRHUUhFaUxNL1plSGNwc3RzanE5d3F6UmJQM3BqRUFj?= =?utf-8?B?WFBRWmNjY1BFaXVycGxXTUlZdm5aa2pxWGRHaWt5N0xTWUZWWkZwSHZ2cTJi?= =?utf-8?B?YnIxaWhaSllqMCtDR00yYlRZODlSOXZXTUp6NTl1em5Cb2FvUnpkUUUzeHVM?= =?utf-8?B?YUZ0bUFicVkyWWhFU0tZU1BIeGNkY1o2Q0lBWE01Y05CRFd4NFRNSE9kTzVW?= =?utf-8?B?ZUJtb0NvUHZwVVh3WjJVWWthQ1RINTI1dDlPRjRGL2dGT1MxNmRtRTZhN1FW?= =?utf-8?B?M0p2a3lSRzdzbnZ6MzZRVlhtdGRnVTdXMHJEbVlOYWo5a0ZYdStIWlFKS3Nt?= =?utf-8?B?WGxYQkNwWHQwRFRPT0hET3ZNYWEwejJkemtoeWZibW02YW9lNGtQY1o4OUY5?= =?utf-8?B?VU5mcC9VU2o5b0hqMDFMb2VZQmtBPT0=?= 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)(1800799024)(376014)(36860700013)(82310400026)(7053199007);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2026 10:31:59.7369 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a698c4fa-b8ac-4e3b-97e4-08de5cc6233f 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: BL6PEPF0001AB4D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9166 On 26/01/2026 11:13, Jan Beulich wrote: > On 26.01.2026 11:08, Orzel, Michal wrote: >> On 14/01/2026 12:33, Jan Beulich wrote: >>> Discussion of a RISC-V change revealed that for PPC and RISC-V we don't >>> really set any default, but rather rely on internals of kconfig picking >>> the lowest of the permitted values in such a case. Let's make this >>> explicit, requiring architectures that mean to permit SMP by default to >>> explicitly record some sensible value here. >>> >>> Leverage the adjustment to the "1" case to simplify all subsequent ones. >>> >>> Signed-off-by: Jan Beulich >> Reviewed-by: Michal Orzel > > Thanks. > >> with one question... >> >>> --- >>> For not-yet-SMP-capable ports we might go even further and use >>> >>> range 1 1 if !X86 && (!ARM || MPU) >>> >>> at the top. Thoughts? (I've not done this right away as it is liable to >>> get unwieldy when we have a larger number of SMP-capable ports.) >>> >>> --- a/xen/arch/Kconfig >>> +++ b/xen/arch/Kconfig >>> @@ -9,11 +9,11 @@ config NR_CPUS >>> range 1 1 if ARM && MPU >> Why not simply && MPU given that MPU is an ARM specific option in our Kconfig. > > Good question, to be answered by whoever put this here. I guess the anticipation > may have been that "MPU" might end up meaning something else on another arch, at > some future point? Except for this specific case, there is no other use of MPU in non-arch Kconfig or code, so it's difficult to say. I would be more willing to tie it to Arm, so that we don't need ARM/CONFIG_ARM before MPU/CONFIG_MPU. ~Michal