]> Git Repo - qemu.git/commitdiff
virtio-x-bus: force bus name to virtio-bus.
authorKONRAD Frederic <[email protected]>
Tue, 30 Apr 2013 14:08:47 +0000 (16:08 +0200)
committerAnthony Liguori <[email protected]>
Fri, 3 May 2013 17:05:14 +0000 (12:05 -0500)
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 <[email protected]>
Tested-by: Cornelia Huck <[email protected]>
Message-id: 1367330931[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
hw/s390x/s390-virtio-bus.c
hw/s390x/virtio-ccw.c
hw/virtio/virtio-pci.c

index 2cff6b794d701c906df4a2bd4cfb4f3c2a075c1f..d52a54725f9df34ea9730070553436876a859e28 100644 (file)
@@ -669,7 +669,10 @@ static void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev)
 {
     DeviceState *qdev = DEVICE(dev);
     BusState *qbus;
-    qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_S390_BUS, qdev, NULL);
+    char virtio_bus_name[] = "virtio-bus";
+
+    qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_S390_BUS, qdev,
+                        virtio_bus_name);
     qbus = BUS(bus);
     qbus->allow_hotplug = 1;
 }
index c0f26460a903cd6b359eb76b4fd5b61c2d8b3082..ef9908001d0a88adbfd1a2e5f434cbd635eec2a2 100644 (file)
@@ -1062,8 +1062,10 @@ static void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev)
 {
     DeviceState *qdev = DEVICE(dev);
     BusState *qbus;
+    char virtio_bus_name[] = "virtio-bus";
 
-    qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_CCW_BUS, qdev, NULL);
+    qbus_create_inplace((BusState *)bus, TYPE_VIRTIO_CCW_BUS, qdev,
+                        virtio_bus_name);
     qbus = BUS(bus);
     qbus->allow_hotplug = 1;
 }
index 41bb41eb2e7ad0d3ecdb138d1fa63613bb9f8f34..070df44aad84d629738c80f031e5dc9ce9a9fceb 100644 (file)
@@ -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;
 }
This page took 0.032421 seconds and 4 git commands to generate.