xen/domain: Reduce the quantity of initialisation for system domains
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Feb 2018 16:35:02 +0000 (16:35 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 7 Mar 2018 16:00:37 +0000 (16:00 +0000)
commitcfc52148444fb9cc138e15b09c32e00860091809
treee2558e5f07534f19b96d0900abc88dd8a1213f8a
parent47a46b9a6bbcffbf4f9a48c7ef528e9b24de0111
xen/domain: Reduce the quantity of initialisation for system domains

 * System domains don't need watchdog initialisation or iomem/irq rangesets,
   and will not plausibly be a xenstore or hardware domain.
 * The idle domain doesn't need scheduler initialisation (and in particular,
   removing this path allows for substantial scheduler cleanup), and isn't
   liable to ever need late_hwdom_init().

Move all of these initialisations pass the DOMCRF_dummy early exit, and into
non-idle paths.  rangeset_domain_initialise() remains because it makes no
allocations, but does initialise a linked list and spinlock.  The poolid
parameter can be dropped as sched_init_domain()'s parameter is now
unconditionally 0.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/domain.c