OSDN Git Service

vfio/pci: Add driver_managed_dma to the new vfio_pci drivers
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 19 May 2022 23:14:01 +0000 (20:14 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 23 May 2022 16:46:34 +0000 (10:46 -0600)
commitc490513c818d1ec61aff1614f5d0e38de680665f
tree4ea6588b3564ebc6378fcb7a3fbe4df1903f3897
parenta3da1ab6fbea7d5cbcb796f62c8771d8ebd7282a
vfio/pci: Add driver_managed_dma to the new vfio_pci drivers

When the iommu series adding driver_managed_dma was rebased it missed that
new VFIO drivers were added and did not update them too.

Without this vfio will claim the groups are not viable.

Add driver_managed_dma to mlx5 and hisi.

Fixes: 70693f470848 ("vfio: Set DMA ownership for VFIO devices")
Reported-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/0-v1-f9dfa642fab0+2b3-vfio_managed_dma_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
drivers/vfio/pci/mlx5/main.c