vdpa/mlx5: Add support for doorbell bypassing
authorEli Cohen <elic@nvidia.com>
Thu, 3 Jun 2021 08:11:53 +0000 (11:11 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Jul 2021 11:49:01 +0000 (07:49 -0400)
commitb57c46cb3c3bca46e1f0b258493572d234362de8
treeee538c603f56d5e7e825d29d2a2f902bbed3d879
parenta7766ef18b33674fa164e2e2916cef16d4e17f43
vdpa/mlx5: Add support for doorbell bypassing

Implement mlx5_get_vq_notification() to return the doorbell address.
Since the notification area is mapped to userspace, make sure that the
BAR size is at least PAGE_SIZE large.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210603081153.5750-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/core/mlx5_vdpa.h
drivers/vdpa/mlx5/core/resources.c
drivers/vdpa/mlx5/net/mlx5_vnet.c