Add ACPI support for virtio-iommu on the virt machine, by instantiating a VIOT table. Also add the tests for the ACPI table.
Since last posting [1], I rebased onto v6.2.0-rc4. Note that v6 of this series [2] only contained the table and x86 support, which have been merged. Everything has now been reviewed and should be good to go. * Patches 1-2 add the VIOT table for the virt machine * Patches 3-4 are minor fixes * Patches 5-8 add tests for the VIOT table. They contain the tests for q35 as well, which didn't make it last time because they depended on another fix that has now been merged. [1] https://lore.kernel.org/qemu-devel/20211020172745.620101-1-jean-phili...@linaro.org/ [2] https://lore.kernel.org/qemu-devel/20211026182024.2642038-1-jean-phili...@linaro.org/ Jean-Philippe Brucker (8): hw/arm/virt-acpi-build: Add VIOT table for virtio-iommu hw/arm/virt: Remove device tree restriction for virtio-iommu hw/arm/virt: Reject instantiation of multiple IOMMUs hw/arm/virt: Use object_property_set instead of qdev_prop_set tests/acpi: allow updates of VIOT expected data files tests/acpi: add test case for VIOT tests/acpi: add expected blobs for VIOT test on q35 machine tests/acpi: add expected blob for VIOT test on virt machine hw/arm/virt-acpi-build.c | 7 ++++++ hw/arm/virt.c | 20 ++++++++--------- hw/virtio/virtio-iommu-pci.c | 12 ++--------- tests/qtest/bios-tables-test.c | 38 +++++++++++++++++++++++++++++++++ hw/arm/Kconfig | 1 + tests/data/acpi/q35/DSDT.viot | Bin 0 -> 9398 bytes tests/data/acpi/q35/VIOT.viot | Bin 0 -> 112 bytes tests/data/acpi/virt/VIOT | Bin 0 -> 88 bytes 8 files changed, 58 insertions(+), 20 deletions(-) create mode 100644 tests/data/acpi/q35/DSDT.viot create mode 100644 tests/data/acpi/q35/VIOT.viot create mode 100644 tests/data/acpi/virt/VIOT -- 2.34.1