Jason Wang 1b48dc03e5 vhost: vdpa: report iova range
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 DOMAIN_ATTR_GEOMETRY,
otherwise [0, ULLONG_MAX] is assumed.

For safety, this patch also rules out the map request which is not in
the valid range.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20201023090043.14430-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-10-23 11:55:28 -04:00
..
2020-09-04 13:19:19 -07:00
2020-08-02 18:26:51 +03:00
2020-09-20 15:18:11 -07:00
2020-07-27 11:49:37 +02:00
2020-09-15 16:20:43 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-09-21 19:49:15 -04:00
2020-09-24 09:05:04 -07:00
2020-08-28 10:15:33 -07:00
2020-09-13 08:52:21 -07:00
2020-10-08 18:48:34 -07:00
2020-10-02 14:48:25 -07:00
2020-09-29 17:21:54 +02:00
2020-10-06 12:00:52 -07:00
2020-10-09 11:38:07 -07:00
2020-08-14 16:00:09 -07:00
2020-09-25 15:16:01 -07:00
2020-09-26 11:01:18 -07:00
2020-10-09 18:05:12 -07:00
2020-10-02 14:42:13 -07:00
2020-09-15 13:52:14 +02:00
2020-09-25 16:53:02 +02:00
2020-10-23 11:55:28 -04:00
2020-10-06 12:38:28 +10:00