[PATCH v4 10/15] vdpa/mlx5: add MT task for VM memory registration
Maxime Coquelin
maxime.coquelin at redhat.com
Mon Jun 20 17:12:22 CEST 2022
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 <lizh at nvidia.com>
> Acked-by: Matan Azrad <matan at 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.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list