diff options
author | john cooper <john.cooper@redhat.com> | 2010-07-02 13:44:25 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-07-06 17:05:49 +0200 |
commit | 2930b313dd602d67a568815b0b031b824916cec9 (patch) | |
tree | 37d336bbe2b5a382a5dc53bc3135cb965226fb33 /hw/virtio-blk.h | |
parent | 9ac228e02cf16202547e7025ef300369e0db7781 (diff) | |
download | qemu-2930b313dd602d67a568815b0b031b824916cec9.zip qemu-2930b313dd602d67a568815b0b031b824916cec9.tar.gz qemu-2930b313dd602d67a568815b0b031b824916cec9.tar.bz2 |
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>
Diffstat (limited to 'hw/virtio-blk.h')
-rw-r--r-- | hw/virtio-blk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/virtio-blk.h b/hw/virtio-blk.h index 7a7ece3..fff46da 100644 --- a/hw/virtio-blk.h +++ b/hw/virtio-blk.h @@ -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 |