xen/arm: gic-v3: Bail out if gicv3_cpu_init fail
authorJulien Grall <julien.grall@arm.com>
Wed, 6 Dec 2017 14:51:37 +0000 (14:51 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 8 Dec 2017 21:17:38 +0000 (13:17 -0800)
commit9630c5ae363b4cbf8eb61366530f40c80680af4d
treea99844a66f692dc2431a23f9607d7ba26d7e4c7c
parentac2d8d402370f6f93f82871f3b34ddb9a9ccae05
xen/arm: gic-v3: Bail out if gicv3_cpu_init fail

When system registers are not enabled, all the access to them will trap
in EL2. In Xen, system registers will be enabled by gicv3_cpu_init only
on success. As the rest of the code (e.g gicv3_hyp_init) relies on
system register, it is better to bail out directly.

This will save time on debugging early boot issue on GICv3 platform.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v3.c