vdpa/mlx5: Implement susupend virtqueue callback
authorEli Cohen <elic@nvidia.com>
Thu, 14 Jul 2022 11:39:26 +0000 (14:39 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:08 +0000 (04:26 -0400)
commitcae15c2ed8e6e058bd5e32de292ab7982640161e
tree152e65deb350e6fc4d7259e79d9a9893d9baa2c8
parentad146355bfad627bd0717ece73997c6c93b1b82e
vdpa/mlx5: Implement susupend virtqueue callback

Implement the suspend callback allowing to suspend the virtqueues so
they stop processing descriptors. This is required to allow to query a
consistent state of the virtqueue while live migration is taking place.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Message-Id: <20220714113927.85729-2-elic@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c
include/linux/mlx5/mlx5_ifc_vdpa.h