Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NunUn-0000eI-Gw for qemu-devel@nongnu.org; Thu, 25 Mar 2010 09:53:13 -0400 Received: from [140.186.70.92] (port=37085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NunUi-0008Cp-QW for qemu-devel@nongnu.org; Thu, 25 Mar 2010 09:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NunTY-0007yW-Uw for qemu-devel@nongnu.org; Thu, 25 Mar 2010 09:51:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33463) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NunTY-0007xz-Nb for qemu-devel@nongnu.org; Thu, 25 Mar 2010 09:51:56 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2PDptm9030442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Mar 2010 09:51:55 -0400 Message-Id: <20100325134957.714516303@amt.cnet> Date: Thu, 25 Mar 2010 10:47:17 -0300 From: Marcelo Tosatti References: <20100325134715.354365213@amt.cnet> 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: Anthony Liguori Cc: amit.shah@redhat.com, Marcelo Tosatti , qemu-devel@nongnu.org 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)