mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
virtio-blk: Turn drive serial into a qdev property
It needs to be a qdev property, because it belongs to the drive's guest part. Precedence: commita0fef654
and6ced55a5
. Bonus: info qtree now shows the serial number. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
343f85685c
commit
a8686a9b2b
7 changed files with 31 additions and 13 deletions
|
@ -34,6 +34,8 @@
|
|||
#define VIRTIO_BLK_F_WCACHE 9 /* write cache enabled */
|
||||
#define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is available */
|
||||
|
||||
#define VIRTIO_BLK_ID_BYTES 20 /* ID string length */
|
||||
|
||||
struct virtio_blk_config
|
||||
{
|
||||
uint64_t capacity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue