xen/sched: reject switching smt on/off with core scheduling active
authorJuergen Gross <jgross@suse.com>
Wed, 2 Oct 2019 07:27:36 +0000 (09:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2019 10:59:45 +0000 (12:59 +0200)
commitc4598b3d945bf64be181efc2e63132a432d73172
tree70fa9f4000a72e80e2432ab4b8bb1ffbd808da2e
parent9b564c3c0643e910a1d487c4dd0bebf69a6e62da
xen/sched: reject switching smt on/off with core scheduling active

When core or socket scheduling are active enabling or disabling smt is
not possible as that would require a major host reconfiguration.

Add a bool sched_disable_smt_switching which will be set for core or
socket scheduling.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Dario Faggioli <dfaggioli@suse.com>
xen/arch/x86/sysctl.c
xen/common/schedule.c
xen/include/xen/sched.h