diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-08-16 16:13:04 -0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-09-01 15:29:11 -0600 |
commit | 21c13829bc3b786bc5336470df023ae54e41d230 (patch) | |
tree | 53c20b0afef514261db0874fc957e04b816fe599 /drivers/platform | |
parent | 453e6c98fd2bdae0df9adbc86af8d8bf1164edd5 (diff) | |
download | linux-21c13829bc3b786bc5336470df023ae54e41d230.tar.gz linux-21c13829bc3b786bc5336470df023ae54e41d230.tar.bz2 linux-21c13829bc3b786bc5336470df023ae54e41d230.zip |
vfio: Remove vfio_group dev_counter
This counts the number of devices attached to a vfio_group, ie the number
of items in the group->device_list.
It is only read in vfio_pin_pages(), as some kind of protection against
limitations in type1.
However, with all the code cleanups in this area, now that
vfio_pin_pages() accepts a vfio_device directly it is redundant. All
drivers are already calling vfio_register_emulated_iommu_dev() which
directly creates a group specifically for the device and thus it is
guaranteed that there is a singleton group.
Leave a note in the comment about this requirement and remove the logic.
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/0-v2-d4374a7bf0c9+c4-vfio_dev_counter_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions