Make first argument of monitor command pci_add work
commit1f5f6638c063514f193ca447d49fa95f8a574a69
authorMarkus Armbruster <armbru@redhat.com>
Thu, 18 Jun 2009 13:14:09 +0000 (18 15:14 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:29 +0000 (22 10:15 -0500)
treebbfca84f5610579dccbbc632e96888cc5ce6b23e
parent5607c38820366954c38dd702e979499486057481
Make first argument of monitor command pci_add work

Simply pass the PCI address through qemu_pci_hot_add_nic() to
pci_nic_init() and through qemu_pci_hot_add_storage() to pci_create().

Before, pci_device_hot_add() passed along the PCI bus to use, and
ignored any user-specified slot.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci-hotplug.c
hw/pci.c
hw/pci.h