xen/sched: add scheduling granularity enum
authorJuergen Gross <jgross@suse.com>
Wed, 2 Oct 2019 07:27:44 +0000 (09:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2019 11:03:43 +0000 (13:03 +0200)
commitae347ccc4202920fbc36e5a18656c8e93dec3feb
tree14fe516f138f192b99d1519b14940da092aa3c26
parentc5d54d93a00b842f54860c42ac16d8244fcf10b5
xen/sched: add scheduling granularity enum

Add a scheduling granularity enum ("cpu", "core", "socket") for
specification of the scheduling granularity. Initially it is set to
"cpu", this can be modified by the new boot parameter (x86 only)
"sched-gran".

According to the selected granularity sched_granularity is set after
all cpus are online.

A test is added for all sched resources holding the same number of
cpus. Fall back to core- or cpu-scheduling in that case.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/arch/x86/Kconfig
xen/common/Kconfig
xen/common/cpupool.c