* [PATCH v7] xen: allow up to 16383 cpus
@ 2024-05-10 14:16 Juergen Gross
2024-05-10 21:08 ` Julien Grall
0 siblings, 1 reply; 4+ messages in thread
From: Juergen Gross @ 2024-05-10 14:16 UTC (permalink / raw)
To: xen-devel
Cc: Juergen Gross, Oleksii Kurochko, Community Manager, Andrew Cooper,
George Dunlap, Jan Beulich, Julien Grall, Stefano Stabellini
With lock handling now allowing up to 16384 cpus (spinlocks can handle
65535 cpus, rwlocks can handle 16384 cpus), raise the allowed limit for
the number of cpus to be configured to 16383.
The new limit is imposed by IOMMU_CMD_BUFFER_MAX_ENTRIES and
QINVAL_MAX_ENTRY_NR required to be larger than 2 * CONFIG_NR_CPUS.
Add a support limit of physical CPUs to SUPPORT.md (4096 on x86, 128
on ARM).
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
---
V5:
- new patch (Jan Beulich)
V7:
- add SUPPORT.md and CHANGELOG.md entries
---
CHANGELOG.md | 2 ++
SUPPORT.md | 5 +++++
xen/arch/Kconfig | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8041cfb7d2..c43c45d8d4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- HVM PIRQs are disabled by default.
- Reduce IOMMU setup time for hardware domain.
- xl/libxl configures vkb=[] for HVM domains with priority over vkb_device.
+ - Increase the maximum number of CPUs Xen can be built for from 4095 to
+ 16383.
### Added
- On x86:
diff --git a/SUPPORT.md b/SUPPORT.md
index e10d46d924..d5d60c62ec 100644
--- a/SUPPORT.md
+++ b/SUPPORT.md
@@ -61,6 +61,11 @@ For the Cortex A77 r0p0 - r1p0, see Errata 1508412.
Status, x86: Supported
+### Physical CPUs
+
+ Status, x86: Supported up to 4096
+ Status, ARM: Supported up to 128
+
### Host ACPI (via Domain 0)
Status, x86 PV: Supported
diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig
index 67ba38f32f..308ce129a8 100644
--- a/xen/arch/Kconfig
+++ b/xen/arch/Kconfig
@@ -6,7 +6,7 @@ config PHYS_ADDR_T_32
config NR_CPUS
int "Maximum number of CPUs"
- range 1 4095
+ range 1 16383
default "256" if X86
default "8" if ARM && RCAR3
default "4" if ARM && QEMU
--
2.35.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v7] xen: allow up to 16383 cpus
2024-05-10 14:16 [PATCH v7] xen: allow up to 16383 cpus Juergen Gross
@ 2024-05-10 21:08 ` Julien Grall
2024-05-10 21:11 ` Andrew Cooper
0 siblings, 1 reply; 4+ messages in thread
From: Julien Grall @ 2024-05-10 21:08 UTC (permalink / raw)
To: Juergen Gross, xen-devel
Cc: Oleksii Kurochko, Community Manager, Andrew Cooper, George Dunlap,
Jan Beulich, Stefano Stabellini
Hi Juergen,
On 10/05/2024 15:16, Juergen Gross wrote:
> With lock handling now allowing up to 16384 cpus (spinlocks can handle
> 65535 cpus, rwlocks can handle 16384 cpus), raise the allowed limit for
> the number of cpus to be configured to 16383.
>
> The new limit is imposed by IOMMU_CMD_BUFFER_MAX_ENTRIES and
> QINVAL_MAX_ENTRY_NR required to be larger than 2 * CONFIG_NR_CPUS.
>
> Add a support limit of physical CPUs to SUPPORT.md (4096 on x86, 128
> on ARM).
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>
I am a bit surprised that this is kept given you added SUPPORT.md. I'd
like Jan (or other x86 maintainers) to confirm they are happy with the
proposed x86 security supported limit the SUPPORT.md.
For Arm (only):
Acked-by: Julien Grall <jgrall@amazon.com>
> ---
> V5:
> - new patch (Jan Beulich)
> V7:
> - add SUPPORT.md and CHANGELOG.md entries
> ---
> CHANGELOG.md | 2 ++
> SUPPORT.md | 5 +++++
> xen/arch/Kconfig | 2 +-
> 3 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/CHANGELOG.md b/CHANGELOG.md
> index 8041cfb7d2..c43c45d8d4 100644
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
> - HVM PIRQs are disabled by default.
> - Reduce IOMMU setup time for hardware domain.
> - xl/libxl configures vkb=[] for HVM domains with priority over vkb_device.
> + - Increase the maximum number of CPUs Xen can be built for from 4095 to
> + 16383.
>
> ### Added
> - On x86:
> diff --git a/SUPPORT.md b/SUPPORT.md
> index e10d46d924..d5d60c62ec 100644
> --- a/SUPPORT.md
> +++ b/SUPPORT.md
> @@ -61,6 +61,11 @@ For the Cortex A77 r0p0 - r1p0, see Errata 1508412.
>
> Status, x86: Supported
>
> +### Physical CPUs
> +
> + Status, x86: Supported up to 4096
> + Status, ARM: Supported up to 128
> +
> ### Host ACPI (via Domain 0)
>
> Status, x86 PV: Supported
> diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig
> index 67ba38f32f..308ce129a8 100644
> --- a/xen/arch/Kconfig
> +++ b/xen/arch/Kconfig
> @@ -6,7 +6,7 @@ config PHYS_ADDR_T_32
>
> config NR_CPUS
> int "Maximum number of CPUs"
> - range 1 4095
> + range 1 16383
> default "256" if X86
> default "8" if ARM && RCAR3
> default "4" if ARM && QEMU
Cheers,
--
Julien Grall
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v7] xen: allow up to 16383 cpus
2024-05-10 21:08 ` Julien Grall
@ 2024-05-10 21:11 ` Andrew Cooper
2024-05-10 21:16 ` Julien Grall
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cooper @ 2024-05-10 21:11 UTC (permalink / raw)
To: Julien Grall, Juergen Gross, xen-devel
Cc: Oleksii Kurochko, Community Manager, George Dunlap, Jan Beulich,
Stefano Stabellini
On 10/05/2024 10:08 pm, Julien Grall wrote:
> Hi Juergen,
>
> On 10/05/2024 15:16, Juergen Gross wrote:
>> With lock handling now allowing up to 16384 cpus (spinlocks can handle
>> 65535 cpus, rwlocks can handle 16384 cpus), raise the allowed limit for
>> the number of cpus to be configured to 16383.
>>
>> The new limit is imposed by IOMMU_CMD_BUFFER_MAX_ENTRIES and
>> QINVAL_MAX_ENTRY_NR required to be larger than 2 * CONFIG_NR_CPUS.
>>
>> Add a support limit of physical CPUs to SUPPORT.md (4096 on x86, 128
>> on ARM).
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> Acked-by: Jan Beulich <jbeulich@suse.com>
>
> I am a bit surprised that this is kept given you added SUPPORT.md. I'd
> like Jan (or other x86 maintainers) to confirm they are happy with the
> proposed x86 security supported limit the SUPPORT.md.
>
> For Arm (only):
>
> Acked-by: Julien Grall <jgrall@amazon.com>
XenServer is currently at 2k and we're waiting on this series to move to 4k.
I'm happy with this being the security statement for now.
~Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v7] xen: allow up to 16383 cpus
2024-05-10 21:11 ` Andrew Cooper
@ 2024-05-10 21:16 ` Julien Grall
0 siblings, 0 replies; 4+ messages in thread
From: Julien Grall @ 2024-05-10 21:16 UTC (permalink / raw)
To: Andrew Cooper, Juergen Gross, xen-devel
Cc: Oleksii Kurochko, Community Manager, George Dunlap, Jan Beulich,
Stefano Stabellini
On 10/05/2024 22:11, Andrew Cooper wrote:
> On 10/05/2024 10:08 pm, Julien Grall wrote:
>> Hi Juergen,
>>
>> On 10/05/2024 15:16, Juergen Gross wrote:
>>> With lock handling now allowing up to 16384 cpus (spinlocks can handle
>>> 65535 cpus, rwlocks can handle 16384 cpus), raise the allowed limit for
>>> the number of cpus to be configured to 16383.
>>>
>>> The new limit is imposed by IOMMU_CMD_BUFFER_MAX_ENTRIES and
>>> QINVAL_MAX_ENTRY_NR required to be larger than 2 * CONFIG_NR_CPUS.
>>>
>>> Add a support limit of physical CPUs to SUPPORT.md (4096 on x86, 128
>>> on ARM).
>>>
>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>> Acked-by: Jan Beulich <jbeulich@suse.com>
>>
>> I am a bit surprised that this is kept given you added SUPPORT.md. I'd
>> like Jan (or other x86 maintainers) to confirm they are happy with the
>> proposed x86 security supported limit the SUPPORT.md.
>>
>> For Arm (only):
>>
>> Acked-by: Julien Grall <jgrall@amazon.com>
>
> XenServer is currently at 2k and we're waiting on this series to move to 4k.
>
> I'm happy with this being the security statement for now.
Thanks for confirming :). Committed.
Cheers,
--
Julien Grall
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-10 21:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 14:16 [PATCH v7] xen: allow up to 16383 cpus Juergen Gross
2024-05-10 21:08 ` Julien Grall
2024-05-10 21:11 ` Andrew Cooper
2024-05-10 21:16 ` Julien Grall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.