Re: [PATCH vhost 16/16] vdpa/mlx5: Update cvq iotlb mapping on ASID change

2023-10-05 Thread Dragos Tatulea via Virtualization
On Thu, 2023-10-05 at 12:41 +0200, Eugenio Perez Martin wrote: > On Thu, Sep 28, 2023 at 6:50 PM Dragos Tatulea wrote: > > > > For the following sequence: > > - cvq group is in ASID 0 > > - .set_map(1, cvq_iotlb) > > - .set_group_asid(cvq_group, 1) > > > > ... the cvq mapping from ASID 0 will

[PATCH vhost 16/16] vdpa/mlx5: Update cvq iotlb mapping on ASID change

2023-09-28 Thread Dragos Tatulea via Virtualization
For the following sequence: - cvq group is in ASID 0 - .set_map(1, cvq_iotlb) - .set_group_asid(cvq_group, 1) ... the cvq mapping from ASID 0 will be used. This is not always correct behaviour. This patch adds support for the above mentioned flow by saving the iotlb on each .set_map and updating