diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-06-20 11:35:18 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-07-05 11:23:29 +0200 |
commit | 79769a530adcb99066da18c22e4fef491c5b3ef6 (patch) | |
tree | 0e41513d813d57577210b5e10518ffab250156ee /hw/virtio.h | |
parent | dc35e6b0765b6a7ac7f3a0f4afc4f5cac3830a60 (diff) | |
download | qemu-79769a530adcb99066da18c22e4fef491c5b3ef6.tar.gz qemu-79769a530adcb99066da18c22e4fef491c5b3ef6.tar.bz2 qemu-79769a530adcb99066da18c22e4fef491c5b3ef6.zip |
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: commit a0fef654 and 6ced55a5.
Bonus: info qtree now shows the serial number.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r-- | hw/virtio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h index 69e6bb1a4e..0fd0bb0ac5 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -197,7 +197,8 @@ void virtio_bind_device(VirtIODevice *vdev, const VirtIOBindings *binding, void *opaque); /* Base devices. */ -VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf); +VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf, + char **serial); struct virtio_net_conf; VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf, struct virtio_net_conf *net); |