[PATCH v2 5/7] vdpa/mlx5: cache and reuse hardware resources

Maxime Coquelin maxime.coquelin at redhat.com
Wed Apr 20 17:03:09 CEST 2022



On 2/24/22 16:50, Xueming Li wrote:
> During device suspend and resume, resources are not changed normally.
> When huge resources allocated to VM, like huge memory size or lots of

"When huge resources were allocated"

> queues, time spent on release and recreate became significant.
> 
> To speed up, this patch reuse resoruces like VM MR and VirtQ memory if

"reuses resources"

> not changed.
> 
> Signed-off-by: Xueming Li <xuemingl at nvidia.com>
> ---
>   drivers/vdpa/mlx5/mlx5_vdpa.c       | 11 ++++-
>   drivers/vdpa/mlx5/mlx5_vdpa.h       | 12 ++++-
>   drivers/vdpa/mlx5/mlx5_vdpa_mem.c   | 27 ++++++++++-
>   drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 73 +++++++++++++++++++++--------
>   4 files changed, 99 insertions(+), 24 deletions(-)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list