]> git.proxmox.com Git - qemu.git/commit
virtio-serial: Apps should consume all data that guest sends out / Fix virtio api...
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Apr 2010 12:34:09 +0000 (18:04 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Apr 2010 13:58:22 +0000 (08:58 -0500)
commit1e4476aa03b70e78b0dbc21cebd6e9f9c6835067
tree368c24eb66236e911fb5d3d38289c2f63d569cc9
parente85ba9b2dce43d706e21135fc1bf21a30601c2cf
virtio-serial: Apps should consume all data that guest sends out / Fix virtio api abuse

We cannot indicate to the guest how much data was consumed by an app for
out_bufs.  So we just have to assume the apps will consume all the data
that are handed over to them.

Fix the virtio api abuse in control_out() and handle_output().

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