Zhenzhong Duan 7103ef7e76 vfio/common: Introduce a per container device list
Several functions need to iterate over the VFIO devices attached to
a given container.  This is currently achieved by iterating over the
groups attached to the container and then over the devices in the group.
Let's introduce a per container device list that simplifies this
search.

Per container list is used in below functions:
vfio_devices_all_dirty_tracking
vfio_devices_all_device_dirty_tracking
vfio_devices_all_running_and_mig_active
vfio_devices_dma_logging_stop
vfio_devices_dma_logging_start
vfio_devices_query_dirty_bitmap

This will also ease the migration of IOMMUFD by hiding the group
specificity.

Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-10-18 10:10:49 +02:00
..
2023-10-05 09:01:01 -04:00
2023-10-03 07:43:44 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-10-16 12:36:55 -04:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-10-05 09:01:01 -04:00
2023-09-06 11:14:55 -04:00
2023-08-31 19:47:43 +02:00
2023-09-21 11:31:16 +03:00
2023-07-25 17:14:07 +03:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-10-13 13:56:28 +09:00
2023-10-17 10:05:51 -04:00
2023-09-08 13:08:52 +03:00