summaryrefslogtreecommitdiffstats
path: root/hw/i386/Kconfig
diff options
context:
space:
mode:
authorJean-Philippe Brucker2021-10-26 20:20:22 +0200
committerMichael S. Tsirkin2021-11-01 23:49:10 +0100
commit1b3bf13890fd849b2628ca8c059f8d63c74b9572 (patch)
tree192599f84d1245eb500fb3cfa09ee46a27087dc5 /hw/i386/Kconfig
parenthw/i386/pc: Remove x86_iommu_get_type() (diff)
downloadqemu-1b3bf13890fd849b2628ca8c059f8d63c74b9572.tar.gz
qemu-1b3bf13890fd849b2628ca8c059f8d63c74b9572.tar.xz
qemu-1b3bf13890fd849b2628ca8c059f8d63c74b9572.zip
hw/i386/pc: Move IOMMU singleton into PCMachineState
We're about to support a third vIOMMU for x86, virtio-iommu which doesn't inherit X86IOMMUState. Move the IOMMU singleton into PCMachineState, so it can be shared between all three vIOMMUs. The x86_iommu_get_default() helper is still needed by KVM and IOAPIC to fetch the default IRQ-remapping IOMMU. Since virtio-iommu doesn't support IRQ remapping, this interface doesn't need to change for the moment. We could later replace X86IOMMUState with an "IRQ remapping IOMMU" interface if necessary. Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Message-Id: <20211026182024.2642038-4-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')
0 files changed, 0 insertions, 0 deletions