]> Git Repo - qemu.git/commitdiff
virtio-pci: Pass size to virtio_pci_bus_new()
authorAndreas Färber <[email protected]>
Fri, 23 Aug 2013 18:35:18 +0000 (20:35 +0200)
committerAndreas Färber <[email protected]>
Fri, 30 Aug 2013 18:14:39 +0000 (20:14 +0200)
To be passed to qbus_create_inplace().

Reviewed-by: Wenchao Xia <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
hw/virtio/virtio-pci.c

index 8df43d6f234732269edba0e4f0f452881c6b2f31..606b4d4366ce9bd3acc60358c749f0d6315de3a6 100644 (file)
@@ -92,7 +92,8 @@
 /* HACK for virtio to determine if it's running a big endian guest */
 bool virtio_is_big_endian(void);
 
-static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev);
+static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,
+                               VirtIOPCIProxy *dev);
 
 /* virtio device */
 /* DeviceState to VirtIOPCIProxy. For use off data-path. TODO: use QOM. */
@@ -986,7 +987,7 @@ static int virtio_pci_init(PCIDevice *pci_dev)
 {
     VirtIOPCIProxy *dev = VIRTIO_PCI(pci_dev);
     VirtioPCIClass *k = VIRTIO_PCI_GET_CLASS(pci_dev);
-    virtio_pci_bus_new(&dev->bus, dev);
+    virtio_pci_bus_new(&dev->bus, sizeof(dev->bus), dev);
     if (k->init != NULL) {
         return k->init(dev);
     }
@@ -1504,7 +1505,8 @@ static const TypeInfo virtio_rng_pci_info = {
 
 /* virtio-pci-bus */
 
-static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev)
+static void virtio_pci_bus_new(VirtioBusState *bus, size_t bus_size,
+                               VirtIOPCIProxy *dev)
 {
     DeviceState *qdev = DEVICE(dev);
     BusState *qbus;
This page took 0.027797 seconds and 4 git commands to generate.