Commit d3fa1e0f36ee3b4fc61bd5c6b681c82932ebec41
Committed by
Anthony Liguori
1 parent
537fe2d6
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>
Showing
1 changed file
with
0 additions
and
1 deletions
hw/pci-hotplug.c
| @@ -122,7 +122,6 @@ static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, PCIBus *pci_bus, | @@ -122,7 +122,6 @@ static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, PCIBus *pci_bus, | ||
| 122 | break; | 122 | break; |
| 123 | case IF_VIRTIO: | 123 | case IF_VIRTIO: |
| 124 | opaque = pci_create_simple(pci_bus, -1, "virtio-blk-pci"); | 124 | opaque = pci_create_simple(pci_bus, -1, "virtio-blk-pci"); |
| 125 | - qdev_init(opaque); | ||
| 126 | break; | 125 | break; |
| 127 | } | 126 | } |
| 128 | 127 |