On Mon, Oct 21, 2024 at 9:41 PM Dragos Tatulea <dtatu...@nvidia.com> wrote:
>
> From: Si-Wei Liu <si-wei....@oracle.com>
>
> When calculating the physical address range based on the iotlb and mr
> [start,end) ranges, the offset of mr->start relative to map->start
> is not taken into account. This leads to some incorrect and duplicate
> mappings.
>
> For the case when mr->start < map->start the code is already correct:
> the range in [mr->start, map->start) was handled by a different
> iteration.
>
> Fixes: 94abbccdf291 ("vdpa/mlx5: Add shared memory registration code")
> Cc: sta...@vger.kernel.org
> Signed-off-by: Si-Wei Liu <si-wei....@oracle.com>
> Signed-off-by: Dragos Tatulea <dtatu...@nvidia.com>
> ---

Acked-by: Jason Wang <jasow...@redhat.com>

Thanks


Reply via email to