linux/drivers/vdpa
Eli Cohen 6f5312f801 vdpa/mlx5: Add support for running with virtio_vdpa
In order to support running vdpa using vritio_vdpa driver, we need  to
create a different kind of MR, one that has 1:1 mapping, since the
addresses referring to virtqueues are dma addresses.

We create the 1:1 MR in mlx5_vdpa_dev_add() only in case firmware
supports the general capability umem_uid_0. The reason for that is that
1:1 MRs must be created with uid == 0 while virtqueue objects can be
created with uid == 0 only when the firmware capability is on.

If the set_map() callback is called with new translations provided
through iotlb, the driver will destroy the 1:1 MR and create a regular
one.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210602085854.62690-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-07-03 04:51:17 -04:00
..
ifcvf vDPA/ifcvf: reuse pre-defined macros for device ids and vendor ids 2021-07-03 04:50:51 -04:00
mlx5 vdpa/mlx5: Add support for running with virtio_vdpa 2021-07-03 04:51:17 -04:00
vdpa_sim vdpa_sim_blk: remove duplicate include of linux/blkdev.h 2021-07-03 04:50:50 -04:00
virtio_pci vp_vdpa: correct the return value when fail to map notification 2021-07-03 04:50:52 -04:00
Kconfig vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -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