xen/cpupool: Don't allow removing cpu0 from cpupool0
authorLuca Fancellu <luca.fancellu@arm.com>
Fri, 6 May 2022 12:00:10 +0000 (13:00 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 9 May 2022 20:32:39 +0000 (13:32 -0700)
commit544e8af41e23e0d1e787beaa512877f69e51fd76
tree4190d2dd2623df24711b51a3fb7c515caac06702
parenta6dc3b947cd1ba1ae95ef0a46cf4ab4b8a2d3ebd
xen/cpupool: Don't allow removing cpu0 from cpupool0

Cpu0 must remain in cpupool0, otherwise some operations like moving cpus
between cpupools, cpu hotplug, destroying cpupools, shutdown of the host,
might not work in a sane way.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/common/sched/cpupool.c