summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2024-02-19 02:55:57 +0800
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 02:45:51 -0400
commitc2475a9a789721bfdcc1b16aaf61ccfecb891914 (patch)
treea984cafce3c3878cdc73e72838fe3bf254b868e6 /include/uapi
parent2b666ee29618f452b84aeacf08e1267894de7234 (diff)
downloadlinux-stable-c2475a9a789721bfdcc1b16aaf61ccfecb891914.tar.gz
linux-stable-c2475a9a789721bfdcc1b16aaf61ccfecb891914.tar.bz2
linux-stable-c2475a9a789721bfdcc1b16aaf61ccfecb891914.zip
vDPA: report virtio-block capacity to user space
This commit allows userspace to query capacity of a virtio-block device. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Message-Id: <20240218185606.13509-2-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/vdpa.h b/include/uapi/linux/vdpa.h
index 54b649ab0f22..1bf69226cb96 100644
--- a/include/uapi/linux/vdpa.h
+++ b/include/uapi/linux/vdpa.h
@@ -56,6 +56,8 @@ enum vdpa_attr {
/* virtio features that are provisioned to the vDPA device */
VDPA_ATTR_DEV_FEATURES, /* u64 */
+ VDPA_ATTR_DEV_BLK_CFG_CAPACITY, /* u64 */
+
/* new attributes must be added above here */
VDPA_ATTR_MAX,
};