Received: from eggs.gnu.org ([2001:4830:134:3::10]:56496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYanZ-0005U0-0F for qemu-devel@nongnu.org; Mon, 29 Sep 2014 09:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYanS-0005nN-SW for qemu-devel@nongnu.org; Mon, 29 Sep 2014 09:15:28 -0400 Received: from ssl.serverraum.org ([88.198.40.39]:45474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYanS-0005mm-NQ for qemu-devel@nongnu.org; Mon, 29 Sep 2014 09:15:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 29 Sep 2014 15:15:11 +0200 From: Michael Walle Message-ID: <66be66e8dfdeec976fc6c67c54cf587a@walle.cc> Subject: [Qemu-devel] =?utf-8?q?ui/gtk=2Ec_does_not_check_qemu=5Fchr=5Fbe?= =?utf-8?b?X2Nhbl93cml0ZSgp?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , Gerd Hoffmann Cc: qemu-devel@nongnu.org Hi Anthony, Hi Gerd, the GTK frontend does not respect the the "chr_can_read" hook. The frontend just writes characters to the device using qemu_chr_be_write() without checking if the device can receive any input (qemu_chr_be_can_write()). At least for my device model (hw/char/milkymist-uart.c), this results in an assertion because the rx callback asserts if there is already a character in the buffer. It assumes that the uart_rx callback is only called, if the uart_can_rx callback returns a value >0. Do I make a wrong assumption here? -michael