qemu/include/hw/vfio
Eric Auger e4a8ae09c5 vfio: Collect container iova range info
Collect iova range information if VFIO_IOMMU_TYPE1_INFO_CAP_IOVA_RANGE
capability is supported.

This allows to propagate the information though the IOMMU MR
set_iova_ranges() callback so that virtual IOMMUs
get aware of those aperture constraints. This is only done if
the info is available and the number of iova ranges is greater than
0.

A new vfio_get_info_iova_range helper is introduced matching
the coding style of existing vfio_get_info_dma_avail. The
boolean returned value isn't used though. Code is aligned
between both.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Yanghang Liu <yanghliu@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-11-03 09:20:31 +01:00
..
vfio-amd-xgbe.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
vfio-calxeda-xgmac.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
vfio-common.h vfio: Collect container iova range info 2023-11-03 09:20:31 +01:00
vfio-platform.h Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
vfio.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00