summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.c
diff options
context:
space:
mode:
authorKONRAD Frederic2013-04-30 16:08:47 +0200
committerAnthony Liguori2013-05-03 19:05:14 +0200
commitf4dd69aa4ce96196b3d84cd3d3e14a79ea029630 (patch)
treeabdb81126d4104f46f8b2afb5597f6a8e0057bcd /hw/virtio/virtio-pci.c
parentTLS support for VNC Websockets (diff)
downloadqemu-f4dd69aa4ce96196b3d84cd3d3e14a79ea029630.tar.gz
qemu-f4dd69aa4ce96196b3d84cd3d3e14a79ea029630.tar.xz
qemu-f4dd69aa4ce96196b3d84cd3d3e14a79ea029630.zip
virtio-x-bus: force bus name to virtio-bus.
When the proxy id is set, this bus takes the name "id.0" which is expected to be the virtio-device's first bus. So force this name to "virtio-bus" as it is an internal bus. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Message-id: 1367330931-12994-2-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio/virtio-pci.c')
-rw-r--r--hw/virtio/virtio-pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index 41bb41eb2e..070df44aad 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -1474,7 +1474,10 @@ static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev)
{
DeviceState *qdev = DEVICE(dev);
BusState *qbus;
- qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_PCI_BUS, qdev, NULL);
+ char virtio_bus_name[] = "virtio-bus";
+
+ qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_PCI_BUS, qdev,
+ virtio_bus_name);
qbus = BUS(bus);
qbus->allow_hotplug = 1;
}