[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 04/11] hw/arm/virt: Reject instantiation of multiple IOMMU
From: |
Igor Mammedov |
Subject: |
Re: [PATCH v4 04/11] hw/arm/virt: Reject instantiation of multiple IOMMUs |
Date: |
Wed, 6 Oct 2021 08:35:03 +0200 |
On Fri, 1 Oct 2021 18:33:52 +0100
Jean-Philippe Brucker <jean-philippe@linaro.org> wrote:
> We do not support instantiating multiple IOMMUs. Before adding a
> virtio-iommu, check that no other IOMMU is present. This will detect
> both "iommu=smmuv3" machine parameter and another virtio-iommu instance.
>
> Fixes: 70e89132c9 ("hw/arm/virt: Add the virtio-iommu device tree mappings")
> Reviewed-by: Eric Auger <eric.auger@redhat.com>
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
> ---
> hw/arm/virt.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index 56e8fc7059..36f0261ef4 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -2441,6 +2441,11 @@ static void
> virt_machine_device_pre_plug_cb(HotplugHandler *hotplug_dev,
> hwaddr db_start = 0, db_end = 0;
> char *resv_prop_str;
>
> + if (vms->iommu != VIRT_IOMMU_NONE) {
> + error_setg(errp, "virt machine does not support multiple
> IOMMUs");
> + return;
> + }
> +
> switch (vms->msi_controller) {
> case VIRT_MSI_CTRL_NONE:
> return;
- [PATCH v4 00/11] virtio-iommu: Add ACPI support, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 05/11] hw/arm/virt: Use object_property_set instead of qdev_prop_set, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 04/11] hw/arm/virt: Reject instantiation of multiple IOMMUs, Jean-Philippe Brucker, 2021/10/01
- Re: [PATCH v4 04/11] hw/arm/virt: Reject instantiation of multiple IOMMUs,
Igor Mammedov <=
- [PATCH v4 06/11] hw/i386: Move vIOMMU uniqueness check into pc.c, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 01/11] hw/acpi: Add VIOT table, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 09/11] tests/acpi: add test cases for VIOT, Jean-Philippe Brucker, 2021/10/01