diff options
author | Zhenzhong Duan <zhenzhong.duan@intel.com> | 2023-10-09 11:09:14 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2023-10-18 10:10:49 +0200 |
commit | 7103ef7e765dfdf84ba7042f46d3cc0da682cb89 (patch) | |
tree | 498bf7ccf1b0fafd4f801174d3d6c39b07b917f2 /scripts/qapi | |
parent | c8fcb90c968717323a763d2152bc6103ce720b65 (diff) | |
download | qemu-7103ef7e765dfdf84ba7042f46d3cc0da682cb89.zip qemu-7103ef7e765dfdf84ba7042f46d3cc0da682cb89.tar.gz qemu-7103ef7e765dfdf84ba7042f46d3cc0da682cb89.tar.bz2 |
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>
Diffstat (limited to 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions