[Qemu-devel] [PATCH][RESEND] char: Flush read buffer in mux_chr_can_read

2010-10-19 Thread Jan Kiszka
Move the buffer flush from mux_chr_read to mux_chr_can_read. While the latter is called periodically, the former will only be invoked when new characters arrive at the back-end. This caused problems to front-end drivers whenever they were unable to read data immediately, e.g. virtio-console attache

[Qemu-devel] [PATCH][RESEND] char: Flush read buffer in mux_chr_can_read

2010-06-02 Thread Jan Kiszka
From: Jan Kiszka Move the buffer flush from mux_chr_read to mux_chr_can_read. While the latter is called periodically, the former will only be invoked when new characters arrive at the back-end. This caused problems to front-end drivers whenever they were unable to read data immediately, e.g. vir