xen/arm: introduce create_domUs
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 13 Nov 2018 17:49:25 +0000 (09:49 -0800)
committerJulien Grall <julien.grall@arm.com>
Wed, 14 Nov 2018 19:34:48 +0000 (19:34 +0000)
commit1774e9b1df2748e01b9f20091d5072e582a2272b
tree5089e71e2e1b43d2e596b285b6885002bbfa50f9
parent94a99789387249c2fbc9aef81a82674f87e2fcfa
xen/arm: introduce create_domUs

Call a new function, "create_domUs", from setup_xen to start DomU VMs.

Introduce support for the "xen,domain" compatible node on device tree.
Create new DomU VMs based on the information found on device tree under
"xen,domain". Call construct_domU for each domain.

Introduce a simple global variable named max_init_domid to keep track of
the initial allocated domids. It holds the max domid among the initial
domains.

Move the discard_initial_modules after DomUs have been built.

First create domUs, then start dom0 -- no point in trying to start dom0
when the cpu is busy.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
[julien: Add XEN_DOMCTL_CDF_hap_guest]
Reviewed-by: Julien Grall <julien.grall@arm.com>
CC: andrew.cooper3@citrix.com
CC: jbeulich@suse.com
xen/arch/arm/domain_build.c
xen/arch/arm/setup.c
xen/include/asm-arm/setup.h
xen/include/asm-x86/setup.h