linux/drivers/vdpa
Xie Yongji 0d8c9e7d4b vdpa_sim: Use iova_shift() for the size passed to alloc_iova()
The size passed to alloc_iova() should be the size of page frames.
Now we use byte granularity for the iova domain, so it's safe to
pass the size in bytes to alloc_iova(). But it would be better to use
iova_shift() for the size to avoid future bugs if we change granularity.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210809100923.38-1-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-09-05 16:23:08 -04:00
..
ifcvf vDPA/ifcvf: enable multiqueue and control vq 2021-09-05 16:23:07 -04:00
mlx5 vdpa/mlx5: Add multiqueue support 2021-09-05 16:23:08 -04:00
vdpa_sim vdpa_sim: Use iova_shift() for the size passed to alloc_iova() 2021-09-05 16:23:08 -04:00
virtio_pci vp_vdpa: Fix return value check for vdpa_alloc_device() 2021-08-11 06:44:23 -04:00
Kconfig vdpa/mlx5: Add support for control VQ and MAC setting 2021-09-05 16:23:08 -04:00
Makefile vdpa: introduce virtio pci driver 2021-05-03 04:55:51 -04:00
vdpa.c vdpa: Follow kdoc comment style 2021-05-03 04:55:51 -04:00