cpupool: fix removing cpu from a cpupool
authorJuergen Gross <jgross@suse.com>
Fri, 8 May 2020 08:44:22 +0000 (10:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 May 2020 08:44:22 +0000 (10:44 +0200)
commit498d73647fa17d9eb7a67d2e9bdccac6b438e559
tree41a49245e4ac5d153324522092b1939215961a7e
parent35b819c45c4603fdb1d400925d6b2e6f8689a9d5
cpupool: fix removing cpu from a cpupool

Commit cb563d7665f2 ("xen/sched: support core scheduling for moving
cpus to/from cpupools") introduced a regression when trying to remove
an offline cpu from a cpupool, as the system would crash in this
situation.

Fix that by testing the cpu to be online.

Fixes: cb563d7665f2 ("xen/sched: support core scheduling for moving cpus to/from cpupools")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/cpupool.c