Skip to content

Commit 0d215af

Browse files
eugpermarmstsirkin
authored andcommitted
vdpa: document set_group_asid thread safety
Document that the function races with the check of DRIVER_OK. Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20260119143306.1818855-6-eperezma@redhat.com>
1 parent 02e3f7f commit 0d215af

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

include/linux/vdpa.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ struct vdpa_map_file {
312312
* @idx: virtqueue index
313313
* Returns the affinity mask
314314
* @set_group_asid: Set address space identifier for a
315-
* virtqueue group (optional)
315+
* virtqueue group (optional). Caller must
316+
* prevent this from being executed concurrently
317+
* with set_status.
316318
* @vdev: vdpa device
317319
* @group: virtqueue group
318320
* @asid: address space id for this group

0 commit comments

Comments
 (0)