]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: avoid kick handling during shutdown
authorXueming Li <xuemingl@nvidia.com>
Sun, 8 May 2022 14:25:50 +0000 (17:25 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:58 +0000 (21:39 +0200)
commitb19cc62caf5773e3f17f06128476a2156141d2e2
treee34f70c3368bdb32a1813ad4a7374d0f54957f0b
parent301ef4a18586ae1763206d7e75d9eddb58a7d05e
vdpa/mlx5: avoid kick handling during shutdown

When Qemu suspends a VM, HW notifier is un-mmapped while vCPU thread may
still be active and write notifier through kick socket.

PMD kick handler thread tries to install HW notifier through client
socket. In such case, it will timeout and slow down device close.

This patch skips HW notifier install if VQ or device in middle of
shutdown.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c