diff options
author | Dragos Tatulea <dtatulea@nvidia.com> | 2023-08-02 19:12:18 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-08-10 21:24:28 +0200 |
commit | 9ee811009ad8f87982b69e61d07447d12233ad01 (patch) | |
tree | 754227fa9bcc18d91e370c73d9ed1de833bdc666 /Documentation/core-api | |
parent | vdpa/mlx5: Correct default number of queues when MQ is on (diff) | |
download | linux-9ee811009ad8f87982b69e61d07447d12233ad01.tar.xz linux-9ee811009ad8f87982b69e61d07447d12233ad01.zip |
vdpa/mlx5: Fix mr->initialized semantics
The mr->initialized flag is shared between the control vq and data vq
part of the mr init/uninit. But if the control vq and data vq get placed
in different ASIDs, it can happen that initializing the control vq will
prevent the data vq mr from being initialized.
This patch consolidates the control and data vq init parts into their
own init functions. The mr->initialized will now be used for the data vq
only. The control vq currently doesn't need a flag.
The uninitializing part is also taken care of: mlx5_vdpa_destroy_mr got
split into data and control vq functions which are now also ASID aware.
Fixes: 8fcd20c30704 ("vdpa/mlx5: Support different address spaces for control and data")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Eugenio PĂ©rez <eperezma@redhat.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Message-Id: <20230802171231.11001-3-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'Documentation/core-api')
0 files changed, 0 insertions, 0 deletions