projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed20c7
)
vfio: Use device_iommu_capable()
author
Robin Murphy
<robin.murphy@arm.com>
Fri, 24 Jun 2022 17:59:35 +0000
(18:59 +0100)
committer
Alex Williamson
<alex.williamson@redhat.com>
Mon, 27 Jun 2022 19:23:32 +0000
(13:23 -0600)
Use the new interface to check the capabilities for our device
specifically.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link:
https://lore.kernel.org/r/4ea5eb64246f1ee188d1a61c3e93b37756932eb7.1656092606.git.robin.murphy@arm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
patch
|
blob
|
history
diff --git
a/drivers/vfio/vfio.c
b/drivers/vfio/vfio.c
index 61e71c1154be673e9c40989958ff0c6a86600161..4c06b571eaba9d6a157997fce22b3dd76d6f921c 100644
(file)
--- a/
drivers/vfio/vfio.c
+++ b/
drivers/vfio/vfio.c
@@
-605,7
+605,7
@@
int vfio_register_group_dev(struct vfio_device *device)
* VFIO always sets IOMMU_CACHE because we offer no way for userspace to
* restore cache coherency.
*/
- if (!
iommu_capable(device->dev->bus
, IOMMU_CAP_CACHE_COHERENCY))
+ if (!
device_iommu_capable(device->dev
, IOMMU_CAP_CACHE_COHERENCY))
return -EINVAL;
return __vfio_register_dev(device,