RE: [PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges

2023-11-06 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 1:19 AM >Subject: Re: [PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> Some vIOMMU such as virtio-iommu use iova ranges fr

Re: [PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges

2023-11-06 Thread Cédric Le Goater
On 11/2/23 08:12, Zhenzhong Duan wrote: 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 li

[PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges

2023-11-02 Thread Zhenzhong Duan
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. Signed-off-by: Zhe