virtio-serial-bus: Ports are expected to implement 'have_data' callback
commit03ecd2c80a64d030a22fe67cc7a60f24e17ff211
authorAmit Shah <amit.shah@redhat.com>
Wed, 21 Dec 2011 06:58:29 +0000 (21 12:28 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 21 Dec 2011 21:00:29 +0000 (21 15:00 -0600)
tree32f1318500eef8f61fc3239998d1bf5fd8dbd373
parent05e7af694ce00dafdc464ca70306fa9dd6f78dcd
virtio-serial-bus: Ports are expected to implement 'have_data' callback

There's no need to check if ports can accept any incoming data from the
guest each time the guest sends data.  Check if the port implements such
functionality during port initialisation.

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