xen/cpupool: limit number of cpupools
authorJuergen Gross <jgross@suse.com>
Fri, 20 May 2022 10:19:06 +0000 (12:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 May 2022 10:19:06 +0000 (12:19 +0200)
commit488a15a669e5b83267590ed8dad2428a5216ee87
tree12c382ccb30e565204cfe4753dc528e2d6ba7e23
parent77bbea1bafe2d5155e6325bdd782c9f19f8a6aea
xen/cpupool: limit number of cpupools

Today the number of cpupools in a system is unlimited. This can lead to
multiple problems (e.g. duplicate cpupool-id or scalability issues).

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 already existing use cases for
such spare cpupools).

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/sched/cpupool.c