mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
1f5f6638c0
commit
c2cc47a449
7 changed files with 35 additions and 4 deletions
1
sysemu.h
1
sysemu.h
|
@ -156,6 +156,7 @@ typedef enum {
|
|||
|
||||
typedef struct DriveInfo {
|
||||
BlockDriverState *bdrv;
|
||||
const char *devaddr;
|
||||
BlockInterfaceType type;
|
||||
int bus;
|
||||
int unit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue