> -----Original Message----- > From: Maxime Coquelin <[email protected]> > Sent: Friday, May 26, 2023 12:26 AM > To: [email protected]; Xia, Chenbo <[email protected]>; > [email protected]; [email protected]; [email protected]; > [email protected]; Liang, Cunming <[email protected]>; Xie, Yongji > <[email protected]>; [email protected]; [email protected]; > [email protected]; [email protected] > Cc: Maxime Coquelin <[email protected]> > Subject: [PATCH v3 07/28] vhost: change to single IOTLB cache per device > > This patch simplifies IOTLB implementation and improves > IOTLB memory consumption by having a single IOTLB cache > per device, instead of having one per queue. > > In order to not impact performance, it keeps an IOTLB lock > per virtqueue, so that there is no contention between > multiple queue trying to acquire it. > > Signed-off-by: Maxime Coquelin <[email protected]> > --- > lib/vhost/iotlb.c | 212 +++++++++++++++++++---------------------- > lib/vhost/iotlb.h | 43 ++++++--- > lib/vhost/vhost.c | 18 ++-- > lib/vhost/vhost.h | 16 ++-- > lib/vhost/vhost_user.c | 23 +++-- > 5 files changed, 159 insertions(+), 153 deletions(-) > > -- > 2.40.1
Reviewed-by: Chenbo Xia <[email protected]>

