Fix reading from character devices
commitf1c049464a1a8e6d5578c818710a5745c06541a0
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 21 Feb 2008 12:32:49 +0000 (21 13:32 +0100)
committerAvi Kivity <avi@qumranet.com>
Fri, 22 Feb 2008 07:40:37 +0000 (22 09:40 +0200)
treede56a7a5c29c34d9fcb5e507aee60cd8f976cd4b
parentf108b1d6e588dc2e2addb85ccfeec19921a2666e
Fix reading from character devices

commit "kvm: qemu: consume all pending I/O in I/O loop"
(8ab8bb09f1115b9bf733f885cc92b6c63d83f420) broke reading data bursts
from serial devices (and maybe from other character devices as well) by
guests. Reason: serial devices do input flow control via fd_read_poll,
but qemu now ignores this fact by pushing all data into the virtual
device as soon as it is available.

Patch below is not really nice (just as the whole internal virtual I/O
interface at the moment, IMHO), but it re-enables the serial ports for
now.

Signed-off-by: Avi Kivity <avi@qumranet.com>
vl.c