]> xenbits.xensource.com Git - xen.git/commit
xen/cpupool: Allow cpupool0 to use different scheduler
authorLuca Fancellu <luca.fancellu@arm.com>
Fri, 6 May 2022 12:00:12 +0000 (13:00 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 9 May 2022 20:33:03 +0000 (13:33 -0700)
commit0badfb110fa33ca9ffd3bdc3a5200cded03e6106
tree7b674632933e0ef330dd50a8e78f42b335d93f9f
parent92ea9c54fc81b75154a72168b9a2be969b9d7ff8
xen/cpupool: Allow cpupool0 to use different scheduler

Currently cpupool0 can use only the default scheduler, and
cpupool_create has an hardcoded behavior when creating the pool 0
that doesn't allocate new memory for the scheduler, but uses the
default scheduler structure in memory.

With this commit it is possible to allocate a different scheduler for
the cpupool0 when using the boot time cpupool.
To achieve this the hardcoded behavior in cpupool_create is removed
and the cpupool0 creation is moved.

When compiling without boot time cpupools enabled, the current
behavior is maintained (except that cpupool0 scheduler memory will be
allocated).

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