OSDN Git Service

hw/arm/virt: Add the virtio-iommu device tree mappings
authorEric Auger <eric.auger@redhat.com>
Fri, 14 Feb 2020 13:27:44 +0000 (14:27 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Feb 2020 08:46:10 +0000 (03:46 -0500)
commit70e89132c9e67473b7cbb507dd13c96aab598517
tree844de4d7f46393d83a7655480cdb3de11f960b6f
parent8b4eb09e32456ebd769fe09a1aa338d6a3536376
hw/arm/virt: Add the virtio-iommu device tree mappings

Adds the "virtio,pci-iommu" node in the host bridge node and
the RID mapping, excluding the IOMMU RID.

This is done in the virtio-iommu-pci hotplug handler which
gets called only if no firmware is loaded or if -no-acpi is
passed on the command line. As non DT integration is
not yet supported by the kernel we must make sure we
are in DT mode. This limitation will be removed as soon
as the topology description feature gets supported.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20200214132745.23392-10-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
include/hw/arm/virt.h