]> git.ipfire.org Git - thirdparty/linux.git/commit
vduse: add vq group asid support
authorEugenio Pérez <eperezma@redhat.com>
Mon, 19 Jan 2026 14:33:04 +0000 (15:33 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Jan 2026 20:32:18 +0000 (15:32 -0500)
commit079212f6877e5d07308c8998a8fbc7539ca3f8f3
tree449408047fcc0d1d36cb2ca1b526cb098fc871c4
parentf3dc3a8a3ea71d4758b0f63affceb18398cf79b8
vduse: add vq group asid support

Add support for assigning Address Space Identifiers (ASIDs) to each VQ
group.  This enables mapping each group into a distinct memory space.

The vq group to ASID association is protected by a rwlock now.  But the
mutex domain_lock keeps protecting the domains of all ASIDs, as some
operations like the one related with the bounce buffer size still
requires to lock all the ASIDs.

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-12-eperezma@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c
include/uapi/linux/vduse.h