aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@pond.sub.org>2009-06-18 15:14:10 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-22 10:15:29 -0500
commitc2cc47a449c3e16f7dd4d19a536c649ec56a9ac9 (patch)
tree77920d6d5fd89eb2d8513b49c1205a3656b28429 /sysemu.h
parentMake first argument of monitor command pci_add work (diff)
downloadqemu-kvm-c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9.tar.gz
qemu-kvm-c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9.tar.bz2
qemu-kvm-c2cc47a449c3e16f7dd4d19a536c649ec56a9ac9.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 403b35ed3..d77de09c1 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -156,6 +156,7 @@ typedef enum {
typedef struct DriveInfo {
BlockDriverState *bdrv;
+ const char *devaddr;
BlockInterfaceType type;
int bus;
int unit;