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)
commit9ae84f0a6d4b71efff6b830eb7cab408cf613dbc
tree366ddf865f162cb16bdf6309603e4cffc8713ea4
parent794401ca9cdc17faa2049404b5498df4ef239533
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