Re: [PATCH] xen/cpupool: limit number of cpupools

2022-05-18 Thread Andrew Cooper
On 18/05/2022 15:44, Juergen Gross wrote: > Today the number of cpupools in a system is unlimited. This can lead to > multiple problems (e.g. duplicate cpupool-id). Not to mention scalability issues.  Search by ID is O(n). > > Limit the number of cpupools to twice the number of maximum possible >

[PATCH] xen/cpupool: limit number of cpupools

2022-05-18 Thread Juergen Gross
Today the number of cpupools in a system is unlimited. This can lead to multiple problems (e.g. duplicate cpupool-id). Limit the number of cpupools to twice the number of maximum possible cpus, allowing to have one cpupool per physical cpu plus some spare cpupools for special means (there are alre