[RFC 0/3] MLX Adress Space ID + Control VirtQueue fixes

From: Eugenio Pérez
Date: Thu Jan 12 2023 - 09:35:16 EST


Proposal for fixes detected when using CVQ in a different ASID.

Only tested with qemu and vhost_vdpa.

Eugenio Pérez (3):
vdpa/mlx5: reset iotlb at dup_iotlb
vdpa/mlx5: conditionally delete cvq iotlb in destroy_mr
vdpa/mlx5: take iommu_lock at dup_iotlb

drivers/vdpa/mlx5/core/mlx5_vdpa.h | 2 +-
drivers/vdpa/mlx5/core/mr.c | 20 ++++++++++++++------
drivers/vdpa/mlx5/net/mlx5_vnet.c | 12 ++++++------
3 files changed, 21 insertions(+), 13 deletions(-)

--
2.31.1