virtio-bus: introduce iommu_enabled()
commitdd014b4f4967e85c021033193d70d7526b7214cb
authorJason Wang <jasowang@redhat.com>
Wed, 4 Aug 2021 03:48:01 +0000 (4 11:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 20:35:17 +0000 (4 16:35 -0400)
tree24ae9ae9ed3a19b9d8faded83ae02b598029eb50
parent2d050ed07c97a88202dac3eef64263e1f2556bfe
virtio-bus: introduce iommu_enabled()

This patch introduce a new method for the virtio-bus for the transport
to report whether or not the IOMMU is enabled for the device.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20210804034803.1644-2-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-bus.c
include/hw/virtio/virtio-bus.h