]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: expose function vhost_dev_has_iommu()
authorCindy Lu <lulu@redhat.com>
Wed, 10 May 2023 05:46:28 +0000 (13:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit74b5d2b56c85515f1559ee0dfa8289bbb9832d51
tree1c7428183cef381fb9c15559df7cd1129453d625
parent3e69908907f8d3dd20d5753b0777a6e3824ba824
vhost: expose function vhost_dev_has_iommu()

To support vIOMMU in vdpa, need to exposed the function
vhost_dev_has_iommu, vdpa will use this function to check
if vIOMMU enable.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20230510054631.2951812-2-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c
include/hw/virtio/vhost.h