summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2024-02-19 02:55:58 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 02:45:51 -0400
commit330b8aea692410fbe8f0d058e01aea2986613ff7 (patch)
treef822ae43be1d9981bacb1db4ea2497a17fe48eef /include/uapi
parentc2475a9a789721bfdcc1b16aaf61ccfecb891914 (diff)
vDPA: report virtio-block max segment size to user space
This commit allows reporting the max size of any single segment of virtio-block devices to user space. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Message-Id: <20240218185606.13509-3-lingshan.zhu@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/vdpa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/vdpa.h b/include/uapi/linux/vdpa.h
index 1bf69226cb96..586bce3c906a 100644
--- a/include/uapi/linux/vdpa.h
+++ b/include/uapi/linux/vdpa.h
@@ -57,6 +57,7 @@ enum vdpa_attr {
VDPA_ATTR_DEV_FEATURES, /* u64 */
VDPA_ATTR_DEV_BLK_CFG_CAPACITY, /* u64 */
+ VDPA_ATTR_DEV_BLK_CFG_SEG_SIZE, /* u32 */
/* new attributes must be added above here */
VDPA_ATTR_MAX,