On 6/18/22 11:02, Li Zhang wrote:
The driver creates a direct MR object of
the HW for each VM memory region,
which maps the VM physical address to
the actual physical address.

Later, after all the MRs are ready,
the driver creates an indirect MR to group all the direct MRs
into one virtual space from the HW perspective.

Create direct MRs in parallel using the MT mechanism.
After completion, the primary thread creates the indirect MR
needed for the following virtqs configurations.

This optimization accelerrate the LM process and
reduce its time by 5%.

Signed-off-by: Li Zhang <l...@nvidia.com>
Acked-by: Matan Azrad <ma...@nvidia.com>
---
  drivers/vdpa/mlx5/mlx5_vdpa.c         |   1 -
  drivers/vdpa/mlx5/mlx5_vdpa.h         |  31 ++-
  drivers/vdpa/mlx5/mlx5_vdpa_cthread.c |  47 ++++-
  drivers/vdpa/mlx5/mlx5_vdpa_mem.c     | 270 ++++++++++++++++++--------
  drivers/vdpa/mlx5/mlx5_vdpa_virtq.c   |   6 +-
  5 files changed, 258 insertions(+), 97 deletions(-)


Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to