Searched hist:"714 e9aff" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/vfio/ |
H A D | iommufd.c | 714e9aff Tue Nov 21 02:44:05 CST 2023 Zhenzhong Duan <zhenzhong.duan@intel.com> vfio/iommufd: Add support for iova_ranges and pgsizes
Some vIOMMU such as virtio-iommu use IOVA ranges from host side to setup reserved ranges for passthrough device, so that guest will not use an IOVA range beyond host support.
Use an uAPI of IOMMUFD to get IOVA ranges of host side and pass to vIOMMU just like the legacy backend, if this fails, fallback to 64bit IOVA range.
Also use out_iova_alignment returned from uAPI as pgsizes instead of qemu_real_host_page_size() as a fallback.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
|