diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2021-10-26 19:20:23 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-11-01 18:49:10 -0400 |
commit | 36efa250a4ff56a73a5a73540c5097ffd7a67170 (patch) | |
tree | 269b91a14edbecc1f50cbe8cb57e7fc2e9e042e1 /hw/i386/Kconfig | |
parent | 1b3bf13890fd849b2628ca8c059f8d63c74b9572 (diff) | |
download | qemu-36efa250a4ff56a73a5a73540c5097ffd7a67170.zip qemu-36efa250a4ff56a73a5a73540c5097ffd7a67170.tar.gz qemu-36efa250a4ff56a73a5a73540c5097ffd7a67170.tar.bz2 |
hw/i386/pc: Allow instantiating a virtio-iommu device
Allow instantiating a virtio-iommu device by adding an ACPI Virtual I/O
Translation table (VIOT), which describes the relation between the
virtio-iommu and the endpoints it manages.
Add a hotplug handler for virtio-iommu on x86 and set the necessary
reserved region property. On x86, the [0xfee00000, 0xfeefffff] DMA
region is reserved for MSIs. DMA transactions to this range either
trigger IRQ remapping in the IOMMU or bypasses IOMMU translation.
Although virtio-iommu does not support IRQ remapping it must be informed
of the reserved region so that it can forward DMA transactions targeting
this region.
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20211026182024.2642038-5-jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/Kconfig')
-rw-r--r-- | hw/i386/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig index 962d2c9..d22ac4a 100644 --- a/hw/i386/Kconfig +++ b/hw/i386/Kconfig @@ -59,6 +59,7 @@ config PC_ACPI select ACPI_X86 select ACPI_CPU_HOTPLUG select ACPI_MEMORY_HOTPLUG + select ACPI_VIOT select SMBUS_EEPROM select PFLASH_CFI01 depends on ACPI_SMBUS |