]> git.ipfire.org Git - thirdparty/linux.git/commit
vduse: return internal vq group struct as map token
authorEugenio Pérez <eperezma@redhat.com>
Mon, 19 Jan 2026 14:32:57 +0000 (15:32 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Jan 2026 20:32:16 +0000 (15:32 -0500)
commit02e3f7ffe2906033da73b7c7ea8180b131d0cdbc
tree7ed9e187ab67b5148833cfb462ea87316cc16833
parent9350a09afd086771b0612c7b7c9583e8a1568135
vduse: return internal vq group struct as map token

Return the internal struct that represents the vq group as virtqueue map
token, instead of the device.  This allows the map functions to access
the information per group.

At this moment all the virtqueues share the same vq group, that only
can point to ASID 0.  This change prepares the infrastructure for actual
per-group address space handling

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