diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:08 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:08 +0100 |
commit | 07e3af9ac31008a1d7eaaf44d62a13545f01c579 (patch) | |
tree | 743195c13b89452175bcd145c378b613a8330d8a /hw/pci-hotplug.c | |
parent | b4496b13bb51884681656c3470ba778c7e888c2b (diff) |
Virtio-blk qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/pci-hotplug.c')
-rw-r--r-- | hw/pci-hotplug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 294fdd11e2..acda2bb902 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -120,7 +120,8 @@ static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, PCIBus *pci_bus, opaque = pci_create_simple(pci_bus, -1, "lsi53c895a"); break; case IF_VIRTIO: - opaque = virtio_blk_init (pci_bus, drives_table[drive_idx].bdrv); + opaque = pci_create_simple(pci_bus, -1, "virtio-blk"); + qdev_init(opaque); break; } |