mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
2866ddd121
commit
0862a087fd
6 changed files with 23 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue