aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/uapi/linux/vdpa.h
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2024-02-19 02:56:02 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 02:45:51 -0400
commitc9d989b4ababe3ec7291b204f365eaadec0afa26 (patch)
tree9277cb8ef09d9d02b903c25dde66b9dcc772c94a /include/uapi/linux/vdpa.h
parentvDPA: report virtio-block MQ info to user space (diff)
downloadwireguard-linux-c9d989b4ababe3ec7291b204f365eaadec0afa26.tar.xz
wireguard-linux-c9d989b4ababe3ec7291b204f365eaadec0afa26.zip
vDPA: report virtio-block topology info to user space
This commit allows vDPA reporting topology information of virtio-blk devices to user space, includes: 1) the number of logical blocks per physical block 2) offset of first aligned logical block 3) suggested minimum I/O size in blocks 4) optimal (suggested maximum) I/O size in blocks Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Message-Id: <20240218185606.13509-7-lingshan.zhu@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/vdpa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/vdpa.h b/include/uapi/linux/vdpa.h
index 3c8e3c87a864..5cc70614c97a 100644
--- a/include/uapi/linux/vdpa.h
+++ b/include/uapi/linux/vdpa.h
@@ -61,6 +61,10 @@ enum vdpa_attr {
VDPA_ATTR_DEV_BLK_CFG_BLK_SIZE, /* u32 */
VDPA_ATTR_DEV_BLK_CFG_SEG_MAX, /* u32 */
VDPA_ATTR_DEV_BLK_CFG_NUM_QUEUES, /* u16 */
+ VDPA_ATTR_DEV_BLK_CFG_PHY_BLK_EXP, /* u8 */
+ VDPA_ATTR_DEV_BLK_CFG_ALIGN_OFFSET, /* u8 */
+ VDPA_ATTR_DEV_BLK_CFG_MIN_IO_SIZE, /* u16 */
+ VDPA_ATTR_DEV_BLK_CFG_OPT_IO_SIZE, /* u32 */
/* new attributes must be added above here */
VDPA_ATTR_MAX,