virtio-serial: Use control messages to notify guest of new ports
commit055b889f942b063bd1901a316b34017f2b699b12
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Apr 2010 12:33:59 +0000 (27 18:03 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Apr 2010 13:58:21 +0000 (28 08:58 -0500)
treebd783b69eba3e2b24c7963bc97bb11d891033406
parent31abe21f4f026171128e6fbafb40062ae1872bd5
virtio-serial: Use control messages to notify guest of new ports

Allow the port 'id's to be set by a user on the command line. This is
needed by management apps that will want a stable port numbering scheme
for hot-plug/unplug and migration.

Since the port numbers are shared with the guest (to identify ports in
control messages), we just send a control message to the guest
indicating addition of new ports (hot-plug) or notifying the guest of
the available ports when the guest sends us a DEVICE_READY control
message.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-console.c
hw/virtio-serial-bus.c
hw/virtio-serial.h