mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Add virtio disk identification support
This patch adds the final missing bits for support of passing a serial/id string to a virtio-blk guest driver. The guest-side component already exists in the virtio driver, and has recently been reworked by Ryan to export a /sys interface for retrieval of the id from guest userland. Signed-off-by: john cooper <john.cooper@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
9ac228e02c
commit
2930b313dd
2 changed files with 17 additions and 0 deletions
|
@ -59,6 +59,9 @@ struct virtio_blk_config
|
|||
/* Flush the volatile write cache */
|
||||
#define VIRTIO_BLK_T_FLUSH 4
|
||||
|
||||
/* return the device ID string */
|
||||
#define VIRTIO_BLK_T_GET_ID 8
|
||||
|
||||
/* Barrier before this op. */
|
||||
#define VIRTIO_BLK_T_BARRIER 0x80000000
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue