Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vduse: add v1 API definition

This allows the kernel to detect whether the userspace VDUSE device
supports the VQ group and ASID features. VDUSE devices that don't set
the V1 API will not receive the new messages, and vdpa device will be
created with only one vq group and asid.

The next patches implement the new feature incrementally, only enabling
the VDUSE device to set the V1 API version by the end of the series.

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-3-eperezma@redhat.com>

authored by

Eugenio Pérez and committed by
Michael S. Tsirkin
a006ed4e cd025c1e

+4
+4
include/uapi/linux/vduse.h
··· 10 10 11 11 #define VDUSE_API_VERSION 0 12 12 13 + /* VQ groups and ASID support */ 14 + 15 + #define VDUSE_API_VERSION_1 1 16 + 13 17 /* 14 18 * Get the version of VDUSE API that kernel supported (VDUSE_API_VERSION). 15 19 * This is used for future extension.