diff options
author | Jason Gunthorpe <[email protected]> | 2022-05-19 14:03:48 -0300 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2022-05-23 10:27:43 -0600 |
commit | a3da1ab6fbea7d5cbcb796f62c8771d8ebd7282a (patch) | |
tree | 2964b347cc8c4fdfd3441df34ddfc02d8d6e52a9 /include/linux/fpga/fpga-mgr.h | |
parent | 7ab5e10eda02da1d9562ffde562c51055d368e9c (diff) |
vfio: Do not manipulate iommu dma_owner for fake iommu groups
Since asserting dma ownership now causes the group to have its DMA blocked
the iommu layer requires a working iommu. This means the dma_owner APIs
cannot be used on the fake groups that VFIO creates. Test for this and
avoid calling them.
Otherwise asserting dma ownership will fail for VFIO mdev devices as a
BLOCKING iommu_domain cannot be allocated due to the NULL iommu ops.
Fixes: 0286300e6045 ("iommu: iommu_group_claim_dma_owner() must always assign a domain")
Reported-by: Eric Farman <[email protected]>
Tested-by: Eric Farman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions