vdpa/mlx5: fix live migration termination
authorMatan Azrad <matan@mellanox.com>
Fri, 24 Jul 2020 12:07:11 +0000 (12:07 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commit581e312d694337ed361544bae89ced5b92bb06fe
tree73cb3c000cfb0e25e752e6671083ded0044b7d36
parent819a716858264d6c90f554e4fe53740b42c4c893
vdpa/mlx5: fix live migration termination

There are a lot of per virtq operations in the live migration
handling.

Before the driver support for queue update, when a virtq was not valid,
all the LM handling was terminated.

But now, when the driver supports queue update, the virtq can be invalid
as legal stage.

Skip invalid virtq in LM handling.

Fixes: c47d6e83334e ("vdpa/mlx5: support queue update")

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Xueming Li <xuemingl@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa_lm.c