virtio-serial: Add support for flow control
authorAmit Shah <amit.shah@redhat.com>
Fri, 10 Dec 2010 11:21:14 +0000 (16:51 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 20 Jan 2011 09:08:22 +0000 (14:38 +0530)
commitf1925dff7e6c4799f5951cf167a437c0737a266c
tree25cbad7d9dfb64ec7f7ae4a4ef932e6ad0cb35bb
parente300ac275bbf19b31cf5968b8de8abe52c26e163
virtio-serial: Add support for flow control

This commit lets apps signal an incomplete write.  When that happens,
stop sending out any more data to the app and wait for it to unthrottle
the port.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c
hw/virtio-serial.h