xen/arm: iommu: Panic if not all IOMMUs are initialized
authorJulien Grall <julien.grall@arm.com>
Tue, 20 Aug 2019 12:22:55 +0000 (13:22 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 20 Sep 2019 00:28:25 +0000 (17:28 -0700)
commitce44fd015e55d0ecc47c160fb5ce69070aa4991b
tree0a0c0678681cc218ccdedba12097e7ae27253a9c
parent5a929b6180243e0ba41c84c7905f4f8ffc9186fc
xen/arm: iommu: Panic if not all IOMMUs are initialized

At the moment, the platform can come up with only part of the IOMMUs
initialized. This could lead to a failure later on when building the
hardware domain or even trying to assign a device to a guest.

To avoid unwanted behavior, Xen will not continue if one of the IOMMUs
has not been initialized correctly.

[stefano: fix typo in comment, add '\n' to panic message]

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
xen/arch/arm/setup.c
xen/drivers/passthrough/arm/iommu.c