virtio-serial-bus: Fix bus initialisation and allow for bus identification
authorAmit Shah <amit.shah@redhat.com>
Wed, 27 Jan 2010 16:22:19 +0000 (21:52 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jan 2010 15:53:00 +0000 (09:53 -0600)
commit91e8f888f276fae82bec53124793fe735f2d65a2
tree366ddf865f162cb16bdf6309603e4cffc8713ea4
parent446eb51d81f4231464af5f0bad43bfd7284d3137
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>
hw/virtio-serial-bus.c