Re: [PATCH V2 2/3] vhost: vdpa: report iova range

2020-08-31 Thread Jason Wang
On 2020/8/23 下午2:40, Eli Cohen wrote: +static void vhost_vdpa_set_iova_range(struct vhost_vdpa *v) +{ + struct vdpa_iova_range *range = >range; + struct iommu_domain_geometry geo; + struct vdpa_device *vdpa = v->vdpa; + const struct vdpa_config_ops *ops = vdpa->config;

Re: [PATCH V2 2/3] vhost: vdpa: report iova range

2020-08-23 Thread Eli Cohen
On Fri, Aug 21, 2020 at 05:28:12AM -0400, Jason Wang wrote: > This patch introduces a new ioctl for vhost-vdpa device that can > report the iova range by the device. > > For device that implements get_iova_range() method, we fetch it from > the vDPA device. If device doesn't implement

[PATCH V2 2/3] vhost: vdpa: report iova range

2020-08-21 Thread Jason Wang
This patch introduces a new ioctl for vhost-vdpa device that can report the iova range by the device. For device that implements get_iova_range() method, we fetch it from the vDPA device. If device doesn't implement get_iova_range() but depends on platform IOMMU, we will query via