vdpa/mlx5: Add shared memory registration code
Add code to support registering address space region for the device. The virtio driver can run as either: 1. Guest virtio driver 2. Userspace virtio driver on the host 3. Kernel virtio driver on the host In any case a memory key object is required to provide access to memory for the device. This code will be shared by network or block driver implementations. Reviewed-by:Parav Pandit <parav@mellanox.com> Signed-off-by:
Eli Cohen <eli@mellanox.com> Link: https://lore.kernel.org/r/20200804162048.22587-12-eli@mellanox.com Signed-off-by:
Michael S. Tsirkin <mst@redhat.com>
Showing
- drivers/vdpa/mlx5/Makefile 1 addition, 1 deletiondrivers/vdpa/mlx5/Makefile
- drivers/vdpa/mlx5/core/Makefile 0 additions, 1 deletiondrivers/vdpa/mlx5/core/Makefile
- drivers/vdpa/mlx5/core/mlx5_vdpa.h 34 additions, 0 deletionsdrivers/vdpa/mlx5/core/mlx5_vdpa.h
- drivers/vdpa/mlx5/core/mr.c 484 additions, 0 deletionsdrivers/vdpa/mlx5/core/mr.c
- drivers/vdpa/mlx5/core/resources.c 3 additions, 0 deletionsdrivers/vdpa/mlx5/core/resources.c
Loading
Please register or sign in to comment