From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npuxp-0001ZP-4m for qemu-devel@nongnu.org; Thu, 11 Mar 2010 21:51:01 -0500 Received: from [199.232.76.173] (port=54421 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npuxo-0001XZ-HF for qemu-devel@nongnu.org; Thu, 11 Mar 2010 21:51:00 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Npuxm-0005ct-EI for qemu-devel@nongnu.org; Thu, 11 Mar 2010 21:51:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30152) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Npuxk-0005ch-Ig for qemu-devel@nongnu.org; Thu, 11 Mar 2010 21:50:58 -0500 Message-Id: <20100312024808.300129379@redhat.com> Date: Thu, 11 Mar 2010 23:45:51 -0300 From: Marcelo Tosatti References: <20100312024549.787893344@redhat.com> Content-Disposition: inline; filename=virtio-serial-wake Subject: [Qemu-devel] [patch 2/2] virtio-serial-bus: wake up iothread upon guest read notification List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: amit.shah@redhat.com, Marcelo Tosatti , avi@redhat.com Wake up iothread when buffers are consumed. Signed-off-by: Marcelo Tosatti Index: qemu-ioworker/hw/virtio-serial-bus.c =================================================================== --- qemu-ioworker.orig/hw/virtio-serial-bus.c +++ qemu-ioworker/hw/virtio-serial-bus.c @@ -331,6 +331,7 @@ static void handle_output(VirtIODevice * static void handle_input(VirtIODevice *vdev, VirtQueue *vq) { + qemu_notify_event(main_io_worker); } static uint32_t get_features(VirtIODevice *vdev, uint32_t features)