qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT d3fa1e0] qdev: Fix regression in "pci_add ... st


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT d3fa1e0] qdev: Fix regression in "pci_add ... storageif=virtio, ..."
Date: Tue, 16 Jun 2009 21:25:05 -0000

From: Markus Armbruster <address@hidden>

qemu_pci_hot_add_storage() runs qdev_init() twice.  Broken in commit
07e3af9a "Virtio-blk qdev conversion".

Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index abe5bae..4d49c29 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -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;
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]