diff options
author | Markus Armbruster <armbru@pond.sub.org> | 2009-06-18 15:14:10 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-22 10:15:29 -0500 |
commit | c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9 (patch) | |
tree | 77920d6d5fd89eb2d8513b49c1205a3656b28429 /sysemu.h | |
parent | 1f5f6638c063514f193ca447d49fa95f8a574a69 (diff) |
Support addr=... in option argument of -drive if=virtio
Make drive_init() accept addr=, put the value into struct DriveInfo.
Use it in all the places that create virtio-blk-pci devices:
pc_init1(), bamboo_init(), mpc8544ds_init().
Don't support addr= in third argument of monitor command pci_add and
second argument of drive_add, because that clashes with their first
arguments. Admittedly unelegant.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -156,6 +156,7 @@ typedef enum { typedef struct DriveInfo { BlockDriverState *bdrv; + const char *devaddr; BlockInterfaceType type; int bus; int unit; |