]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vDPA: report virtio-block topology info to user space
authorZhu Lingshan <lingshan.zhu@intel.com>
Sun, 18 Feb 2024 18:56:02 +0000 (02:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Mar 2024 06:45:51 +0000 (02:45 -0400)
commitc9d989b4ababe3ec7291b204f365eaadec0afa26
tree9277cb8ef09d9d02b903c25dde66b9dcc772c94a
parent54fb04b02efd8f56e388443d5f9e03e68eef48e6
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>
drivers/vdpa/vdpa.c
include/uapi/linux/vdpa.h