Re: [PATCH v5 11/13] xen/spinlock: support higher number of cpus

2024-03-18 Thread Jürgen Groß
On 18.03.24 16:08, Jan Beulich wrote: On 14.03.2024 08:20, Juergen Gross wrote: --- a/xen/include/xen/spinlock.h +++ b/xen/include/xen/spinlock.h @@ -8,16 +8,16 @@ #include #include -#define SPINLOCK_CPU_BITS 12 +#define SPINLOCK_CPU_BITS 16 #ifdef CONFIG_DEBUG_LOCKS union

Re: [PATCH v5 11/13] xen/spinlock: support higher number of cpus

2024-03-18 Thread Jan Beulich
On 14.03.2024 08:20, Juergen Gross wrote: > --- a/xen/include/xen/spinlock.h > +++ b/xen/include/xen/spinlock.h > @@ -8,16 +8,16 @@ > #include > #include > > -#define SPINLOCK_CPU_BITS 12 > +#define SPINLOCK_CPU_BITS 16 > > #ifdef CONFIG_DEBUG_LOCKS > union lock_debug { > -uint16_t

[PATCH v5 11/13] xen/spinlock: support higher number of cpus

2024-03-14 Thread Juergen Gross
Allow 16 bits per cpu number, which is the limit imposed by spinlock_tickets_t. This will allow up to 65535 cpus, while increasing only the size of recursive spinlocks in debug builds from 8 to 12 bytes. The current Xen limit of 4095 cpus is imposed by SPINLOCK_CPU_BITS being 12. There are