aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorXie Yongji <xieyongji@bytedance.com>2022-06-14 13:15:31 +0800
committerKevin Wolf <kwolf@redhat.com>2022-06-24 17:07:06 +0200
commit0862a087fd710a6c7ad4ea01d35309686e54e202 (patch)
tree780ebf7daabb54866ec8c0ac1a2ef6365f2df50f /qapi
parent2866ddd121f5ccaabf1752a8d25eab9be1309d3f (diff)
downloadqemu-0862a087fd710a6c7ad4ea01d35309686e54e202.zip
qemu-0862a087fd710a6c7ad4ea01d35309686e54e202.tar.gz
qemu-0862a087fd710a6c7ad4ea01d35309686e54e202.tar.bz2
vduse-blk: Add serial option
Add a 'serial' option to allow user to specify this value explicitly. And the default value is changed to an empty string as what we did in "hw/block/virtio-blk.c". Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Message-Id: <20220614051532.92-6-xieyongji@bytedance.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-export.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/qapi/block-export.json b/qapi/block-export.json
index 99c34a6..618a636 100644
--- a/qapi/block-export.json
+++ b/qapi/block-export.json
@@ -187,13 +187,15 @@
# @queue-size: the size of virtqueue. Defaults to 256.
# @logical-block-size: Logical block size in bytes. Range [512, PAGE_SIZE]
# and must be power of 2. Defaults to 512 bytes.
+# @serial: the serial number of virtio block device. Defaults to empty string.
#
# Since: 7.1
##
{ 'struct': 'BlockExportOptionsVduseBlk',
'data': { '*num-queues': 'uint16',
'*queue-size': 'uint16',
- '*logical-block-size': 'size'} }
+ '*logical-block-size': 'size',
+ '*serial': 'str' } }
##
# @NbdServerAddOptions: