[0/4] vdpa/mlx5: support direct notification
mbox series

Message ID 1585059877-2369-1-git-send-email-asafp@mellanox.com
Headers show
Series
  • vdpa/mlx5: support direct notification
Related show

Message

Asaf Penso March 24, 2020, 2:24 p.m. UTC
In order to save CPU usage in host and even make it 0 when guest work with poll mode,
add support for direct doorbell ringing.

Now, when the feature is supported in QEMU, the guest doorbell address is mapped directly to the HW doorbell space and the host SW relay is not used. 

Matan Azrad (4):
  vdpa/mlx5: move virtual doorbell alloc to probe
  vdpa/mlx5: support direct HW notifications
  vdpa/mlx5: validate notifier configuration
  vdpa/mlx5: add log prints

 drivers/vdpa/mlx5/mlx5_vdpa.c       | 90 +++++++++++++++++++++++++++++++------
 drivers/vdpa/mlx5/mlx5_vdpa.h       |  1 +
 drivers/vdpa/mlx5/mlx5_vdpa_steer.c |  2 +
 drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 39 ++++++++--------
 4 files changed, 100 insertions(+), 32 deletions(-)

Comments

Maxime Coquelin April 17, 2020, 5:14 p.m. UTC | #1
On 3/24/20 3:24 PM, Asaf Penso wrote:
> In order to save CPU usage in host and even make it 0 when guest work with poll mode,
> add support for direct doorbell ringing.
> 
> Now, when the feature is supported in QEMU, the guest doorbell address is mapped directly to the HW doorbell space and the host SW relay is not used. 
> 
> Matan Azrad (4):
>   vdpa/mlx5: move virtual doorbell alloc to probe
>   vdpa/mlx5: support direct HW notifications
>   vdpa/mlx5: validate notifier configuration
>   vdpa/mlx5: add log prints
> 
>  drivers/vdpa/mlx5/mlx5_vdpa.c       | 90 +++++++++++++++++++++++++++++++------
>  drivers/vdpa/mlx5/mlx5_vdpa.h       |  1 +
>  drivers/vdpa/mlx5/mlx5_vdpa_steer.c |  2 +
>  drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 39 ++++++++--------
>  4 files changed, 100 insertions(+), 32 deletions(-)
> 

Applied to dpdk-next-virtio/master

Thanks,
Maxime