[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 03/11] hw/arm/virt: Remove device tree restriction for vir
From: |
Jean-Philippe Brucker |
Subject: |
Re: [PATCH v4 03/11] hw/arm/virt: Remove device tree restriction for virtio-iommu |
Date: |
Fri, 8 Oct 2021 16:20:51 +0100 |
On Tue, Oct 05, 2021 at 01:57:35PM +0200, Eric Auger wrote:
> > diff --git a/hw/virtio/virtio-iommu-pci.c b/hw/virtio/virtio-iommu-pci.c
> > index 770c286be7..f30eb16cbf 100644
> > --- a/hw/virtio/virtio-iommu-pci.c
> > +++ b/hw/virtio/virtio-iommu-pci.c
> > @@ -48,16 +48,9 @@ static void virtio_iommu_pci_realize(VirtIOPCIProxy
> > *vpci_dev, Error **errp)
> > VirtIOIOMMU *s = VIRTIO_IOMMU(vdev);
> >
> > if (!qdev_get_machine_hotplug_handler(DEVICE(vpci_dev))) {
> > - MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
> > -
> > - error_setg(errp,
> > - "%s machine fails to create iommu-map device tree
> > bindings",
> > - mc->name);
> actually this does not work. To add a hint you need the *errp to be set.
> Otherwise when running through this path you will get
>
> emu-system-x86_64: ../util/error.c:158: error_append_hint: Assertion
> `err && errp != &error_abort && errp != &error_fatal' failed.
>
> replace the error_append_hint with an error_setg (without the \n)
Woops sorry, will fix
Thanks,
Jean
- [PATCH v4 08/11] tests/acpi: allow updates of VIOT expected data files, (continued)
- [PATCH v4 02/11] hw/arm/virt-acpi-build: Add VIOT table for virtio-iommu, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 11/11] tests/acpi: add expected blobs for VIOT test on q35 machine, Jean-Philippe Brucker, 2021/10/01
- [PATCH v4 03/11] hw/arm/virt: Remove device tree restriction for virtio-iommu, Jean-Philippe Brucker, 2021/10/01
- Re: [PATCH v4 00/11] virtio-iommu: Add ACPI support, Michael S. Tsirkin, 2021/10/05
- Re: [PATCH v4 00/11] virtio-iommu: Add ACPI support, Michael S. Tsirkin, 2021/10/18
- Re: [PATCH v4 00/11] virtio-iommu: Add ACPI support, Jean-Philippe Brucker, 2021/10/19
- Re: [PATCH v4 00/11] virtio-iommu: Add ACPI support, Michael S. Tsirkin, 2021/10/20