Commit 366958a7 authored by Robin Murphy's avatar Robin Murphy Committed by Michael S. Tsirkin

vdpa: Use device_iommu_capable()

Use the new interface to check the capability for our device
specifically.
Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Message-Id: <548e316fa282ce513fabb991a4c4d92258062eb5.1654688822.git.robin.murphy@arm.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
parent ebe797f2
...@@ -1076,7 +1076,7 @@ static int vhost_vdpa_alloc_domain(struct vhost_vdpa *v) ...@@ -1076,7 +1076,7 @@ static int vhost_vdpa_alloc_domain(struct vhost_vdpa *v)
if (!bus) if (!bus)
return -EFAULT; return -EFAULT;
if (!iommu_capable(bus, IOMMU_CAP_CACHE_COHERENCY)) if (!device_iommu_capable(dma_dev, IOMMU_CAP_CACHE_COHERENCY))
return -ENOTSUPP; return -ENOTSUPP;
v->domain = iommu_domain_alloc(bus); v->domain = iommu_domain_alloc(bus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment