diff options
| author | Jason Gunthorpe <[email protected]> | 2022-08-16 16:13:04 -0300 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2022-09-01 15:29:11 -0600 |
| commit | 21c13829bc3b786bc5336470df023ae54e41d230 (patch) | |
| tree | 53c20b0afef514261db0874fc957e04b816fe599 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 453e6c98fd2bdae0df9adbc86af8d8bf1164edd5 (diff) | |
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 <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions