Re: [PATCH v4 6/9] vhost: always take IOTLB lock

2023-01-31 Thread Maxime Coquelin
On 1/19/23 19:46, David Marchand wrote: clang does not support conditionally held locks when statically analysing taken locks with thread safety checks. Always take iotlb locks regardless of VIRTIO_F_IOMMU_PLATFORM feature. Signed-off-by: David Marchand --- lib/vhost/vhost.c | 8 +++-

[PATCH v4 6/9] vhost: always take IOTLB lock

2023-01-19 Thread David Marchand
clang does not support conditionally held locks when statically analysing taken locks with thread safety checks. Always take iotlb locks regardless of VIRTIO_F_IOMMU_PLATFORM feature. Signed-off-by: David Marchand --- lib/vhost/vhost.c | 8 +++- lib/vhost/virtio_net.c | 24