mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 03:43:37 +08:00
qdev: Fix regression in "pci_add ... storage if=virtio, ..."
qemu_pci_hot_add_storage() runs qdev_init() twice. Broken in commit
07e3af9a
"Virtio-blk qdev conversion".
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
537fe2d63f
commit
d3fa1e0f36
@ -122,7 +122,6 @@ static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, PCIBus *pci_bus,
|
||||
break;
|
||||
case IF_VIRTIO:
|
||||
opaque = pci_create_simple(pci_bus, -1, "virtio-blk-pci");
|
||||
qdev_init(opaque);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user