From 0862a087fd710a6c7ad4ea01d35309686e54e202 Mon Sep 17 00:00:00 2001 From: Xie Yongji Date: Tue, 14 Jun 2022 13:15:31 +0800 Subject: 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 Message-Id: <20220614051532.92-6-xieyongji@bytedance.com> Signed-off-by: Kevin Wolf --- qapi/block-export.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qapi') diff --git a/qapi/block-export.json b/qapi/block-export.json index 99c34a6965..618a6367c9 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: -- cgit v1.2.3-55-g7522