Re: [PATCH 3/3] vhost: annotate virtqueue access checks

2023-10-27 Thread Eelco Chaudron
On 23 Oct 2023, at 11:55, David Marchand wrote: > Modifying vq->access_ok should be done with a write lock taken. > Annotate vring_translate() and vring_invalidate() and add missing locks. > > Signed-off-by: David Marchand The changes look good to me. Acked-by: Eelco Chaudron

[PATCH 3/3] vhost: annotate virtqueue access checks

2023-10-23 Thread David Marchand
Modifying vq->access_ok should be done with a write lock taken. Annotate vring_translate() and vring_invalidate() and add missing locks. Signed-off-by: David Marchand --- lib/vhost/vduse.c | 4 lib/vhost/vhost.h | 7 +-- lib/vhost/vhost_user.c | 10 ++ 3 files change