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 <xuemi...@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.coque...@redhat.com> Thanks, Maxime