diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-01-27 21:52:19 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-29 09:53:00 -0600 |
commit | 9ae84f0a6d4b71efff6b830eb7cab408cf613dbc (patch) | |
tree | 366ddf865f162cb16bdf6309603e4cffc8713ea4 /hw | |
parent | 794401ca9cdc17faa2049404b5498df4ef239533 (diff) |
virtio-serial-bus: Fix bus initialisation and allow for bus identification
This commit enables one to use multiple virtio-serial devices and to
assign ports to arbitrary devices like this:
-device virtio-serial,id=foo -device virtio-serial,id=bar \
-device virtserialport,bus=foo.0,name=foo \
-device virtserialport,bus=bar.0,name=bar
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio-serial-bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 403268fa30..ab456ea396 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@ -445,8 +445,7 @@ static VirtIOSerialBus *virtser_bus_new(DeviceState *dev) { VirtIOSerialBus *bus; - bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, - "virtio-serial-bus")); + bus = FROM_QBUS(VirtIOSerialBus, qbus_create(&virtser_bus_info, dev, NULL)); bus->qbus.allow_hotplug = 1; return bus; |