diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-05-16 12:54:05 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-05-21 15:40:50 -0500 |
commit | 12c5674b846dccf1f80fb43b64606721e6f78976 (patch) | |
tree | 0e73f21e748f5dbc8be90fbb388f8b3aa7aac9da /hw/virtio-blk.h | |
parent | 0e47931b88a2352ecfdf21bb99256f399952544d (diff) | |
download | qemu-12c5674b846dccf1f80fb43b64606721e6f78976.tar.gz qemu-12c5674b846dccf1f80fb43b64606721e6f78976.tar.bz2 qemu-12c5674b846dccf1f80fb43b64606721e6f78976.zip |
virtio-blk: define VirtIOBlkConf
We will have to add another field to the virtio-blk configuration in
the next patch. Avoid a proliferation of arguments to virtio_blk_init.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-blk.h')
-rw-r--r-- | hw/virtio-blk.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/virtio-blk.h b/hw/virtio-blk.h index 244dce45aa..70564a188a 100644 --- a/hw/virtio-blk.h +++ b/hw/virtio-blk.h @@ -97,6 +97,12 @@ struct virtio_scsi_inhdr uint32_t residual; }; +struct VirtIOBlkConf +{ + BlockConf conf; + char *serial; +}; + #ifdef __linux__ #define DEFINE_VIRTIO_BLK_FEATURES(_state, _field) \ DEFINE_VIRTIO_COMMON_FEATURES(_state, _field), \ @@ -105,4 +111,5 @@ struct virtio_scsi_inhdr #define DEFINE_VIRTIO_BLK_FEATURES(_state, _field) \ DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) #endif + #endif |