iommufd: Use the iommufd_group to avoid duplicate MSI setup
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 17 Jul 2023 18:12:02 +0000 (15:12 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 26 Jul 2023 13:19:37 +0000 (10:19 -0300)
commit269c5238c5b134ca8b18b98814b87ec995a59968
tree36ec13e10cb4ae1a8498d1fdee54b9cc2dd4f2ac
parent34f327a985ff11e538aa52b3e4842328815ce5de
iommufd: Use the iommufd_group to avoid duplicate MSI setup

This only needs to be done once per group, not once per device. The once
per device was a way to make the device list work. Since we are abandoning
this we can optimize things a bit.

Link: https://lore.kernel.org/r/6-v8-6659224517ea+532-iommufd_alloc_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c