xen/sched: support allocating multiple vcpus into one sched unit
authorJuergen Gross <jgross@suse.com>
Wed, 2 Oct 2019 07:27:30 +0000 (09:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Oct 2019 10:56:27 +0000 (12:56 +0200)
commitc0db6570c44cf7a1d7b6cc3799b61810df7449f0
treec78f20cbc8f56b6688a62572046204e31bab104c
parenta9dd180cf8314a2a6b89e279eddbb5701a6152cd
xen/sched: support allocating multiple vcpus into one sched unit

With a scheduling granularity greater than 1 multiple vcpus share the
same struct sched_unit. Support that.

Setting the initial processor must be done carefully: we can't use
sched_set_res() as that relies on for_each_sched_unit_vcpu() which in
turn needs the vcpu already as a member of the domain's vcpu linked
list, which isn't the case.

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