vdpa/mlx5: Make iotlb helper functions more generic
authorDragos Tatulea <dtatulea@nvidia.com>
Wed, 18 Oct 2023 17:14:54 +0000 (20:14 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Nov 2023 13:19:57 +0000 (09:19 -0400)
commitcf6e024cf7683551ae218ce9af56b82e68a0ef06
tree5a213c04b9cfb016e6a35ad6b20fdfb0b41110f7
parent03dd63c8fae4599439a30e0dde91061789260dbe
vdpa/mlx5: Make iotlb helper functions more generic

They will be used in a follow-up patch.

For dup_iotlb, avoid the src == dst case. This is an error.

Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20231018171456.1624030-17-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Si-Wei Liu <si-wei.liu@oracle.com>
Tested-by: Lei Yang <leiyang@redhat.com>
drivers/vdpa/mlx5/core/mr.c