virtio-iommu-pci: Add virtio iommu pci support
commit8b4eb09e32456ebd769fe09a1aa338d6a3536376
authorEric Auger <eric.auger@redhat.com>
Fri, 14 Feb 2020 13:27:43 +0000 (14 14:27 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Feb 2020 08:46:10 +0000 (27 03:46 -0500)
treee7db6bad69ae0290534afa4c5a1208ada87a0170
parentbd0ab8702fa272d39644bbefa1d3f4b42fc594ff
virtio-iommu-pci: Add virtio iommu pci support

This patch adds virtio-iommu-pci, which is the pci proxy for
the virtio-iommu device.

Currently non DT integration is not yet supported by the kernel.
So the machine must implement a hotplug handler for the
virtio-iommu-pci device that creates the device tree iommu-map
bindings as documented in kernel documentation:

Documentation/devicetree/bindings/virtio/iommu.txt

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20200214132745.23392-9-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/Makefile.objs
hw/virtio/virtio-iommu-pci.c [new file with mode: 0644]
include/hw/pci/pci.h
include/hw/virtio/virtio-iommu.h
qdev-monitor.c