xen/arm: vgic-v3: Delay the initialization of the domain information
authorJulien Grall <julien.grall@arm.com>
Mon, 1 Oct 2018 16:42:26 +0000 (17:42 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 2 Oct 2018 17:05:00 +0000 (18:05 +0100)
commit703d9d5ec13a0f487e7415174ba54e0e3ca158db
treeded2a1a89945efe64fd291fea63f4c14cfd2bc60
parentd677097dc12c15785db8d988253837d0ee7347f4
xen/arm: vgic-v3: Delay the initialization of the domain information

A follow-up patch will require to know the number of vCPUs when
initializating the vGICv3 domain structure. However this information is
not available at domain creation. This is only known once
XEN_DOMCTL_max_vpus is called for that domain.

In order to get the max vCPUs around, delay the domain part of the vGIC
v3 initialization until the first vCPU of the domain is initialized.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Acked-but-disliked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic-v3.c