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

This allows separate the different virtqueues in groups that shares the
same address space.  Asking the VDUSE device for the groups of the vq at
the beginning as they're needed for the DMA API.

Allocating 3 vq groups as net is the device that need the most groups:
* Dataplane (guest passthrough)
* CVQ
* Shadowed vrings.

Future versions of the series can include dynamic allocation of the
groups array so VDUSE can declare more groups.

Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-4-eperezma@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c
include/uapi/linux/vduse.h