linux/drivers/vdpa/vdpa_sim
Stefano Garzarella f53d9910d0 vringh: add 'iotlb_lock' to synchronize iotlb accesses
Usually iotlb accesses are synchronized with a spinlock.
Let's request it as a new parameter in vringh_set_iotlb() and
hold it when we navigate the iotlb in iotlb_translate() to avoid
race conditions with any new additions/deletions of ranges from
the ioltb.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-3-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-05-03 04:55:52 -04:00
..
Makefile vdpa: split vdpasim to core and net modules 2020-12-18 16:14:30 -05:00
vdpa_sim_net.c vdpa_sim: Skip typecasting from void* 2021-03-14 04:37:36 -04:00
vdpa_sim.c vringh: add 'iotlb_lock' to synchronize iotlb accesses 2021-05-03 04:55:52 -04:00
vdpa_sim.h vdpa_sim: use iova module to allocate IOVA addresses 2021-05-03 04:55:52 -04:00