HostIOMMUDevice: Introduce get_iova_ranges callback
authorEric Auger <eric.auger@redhat.com>
Fri, 14 Jun 2024 09:52:53 +0000 (11:52 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:30 +0000 (23:15 +0200)
commit3ad35d9158bde0500aeaea4147345d39ad0ae1c0
tree1257f28689104132debe7f8ffa26adb121131cbd
parent817ef10da23cd9a6ee61c8f31f55b845c7a74760
HostIOMMUDevice: Introduce get_iova_ranges callback

Introduce a new HostIOMMUDevice callback that allows to
retrieve the usable IOVA ranges.

Implement this callback in the legacy VFIO and IOMMUFD VFIO
host iommu devices. This relies on the VFIODevice agent's
base container iova_ranges resource.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/vfio/container.c
hw/vfio/iommufd.c
include/sysemu/host_iommu_device.h