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

Re: [PATCH] kconfig: adjust NR_CPUS defaults


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Mon, 26 Jan 2026 11:08: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=QN9Krxqu+XkT4/VAup8tVuJ+lrhfh8HF6YERfgMjlvM=; b=YIc7g2Rpz96XNC09L7HmiJBpFG2Eewg+g6u499Ki0lN6OZK/Mjrnbv0qnDgJxGCKx0lc14Zt7kdURvW2dJloc97s03yZmegdJinT0y1T9FL11pS6xSKn5D1X/4qxrOnjZbrs9K+CZhYcXZzc7nrUhqEnCIGae++8QS5eGWu3pWqiE2wOpGMaBhiH+3mzmeNdjm95bWTI8IKe57wjKm1qSXto91pu94L/tEpaAzYVh/LlEu/p4djVqCzY9e1F4zhq2NtIM4mvYgO+8rGKDvxSMcatLQ8vQ24Cyn6qaMry1AnJTBrbfF6szDAxgx+RSDpsvL50AQdMiAmWS1rVw5NYwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y8VNmAKY6q/dhYudSog3OcjSwruFHp5yYQ0FnQ1MHL16nCpkMHMISBoPunbyDsIUXAL7Yt0St0cnWAMhNJ1XM7T5pV8mkhh5Cn5IOIcv/Hfvd9ZUfZAGkpQdQ0AWEq/ghZCuGWny2VvFBYnLpuBYoFiNhtu0Jrqj3wMjvsjla5jznYPF/Q5bw10MUnUhnHw5pXOzzWU1WA6JjFKV9vYrNJaSyYNeFadokBukuysbPg2dnKRo3HTaGsIibuMf7/985yQaCYw8+ubkFm73U8DOmcnTdogLdJ3guitNOPcmB6ybWieS5+mCJKXxOqOYY6CUZRVktOP53wcAwA/ySbOWBw==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • Delivery-date: Mon, 26 Jan 2026 10:08:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


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 <jbeulich@xxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

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.

~Michal

>       range 1 16383
>       default "256" if X86
> -     default "1" if ARM && MPU
> -     default "8" if ARM && RCAR3
> -     default "4" if ARM && QEMU
> -     default "4" if ARM && MPSOC
> -     default "128" if ARM
> +     default "1" if !ARM || MPU
> +     default "8" if RCAR3
> +     default "4" if QEMU
> +     default "4" if MPSOC
> +     default "128"
>       help
>         Controls the build-time size of various arrays and bitmaps
>         associated with multiple-cpu management.  It is the upper bound of




 


Rackspace

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