From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: [patch 2/2] virtio-serial-bus: wake up iothread upon guest read notification Date: Thu, 11 Mar 2010 23:45:51 -0300 Message-ID: <20100312024808.300129379@redhat.com> References: <20100312024549.787893344@redhat.com> Cc: avi@redhat.com, anthony@codemonkey.ws, amit.shah@redhat.com, Marcelo Tosatti To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11409 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755881Ab0CLCu7 (ORCPT ); Thu, 11 Mar 2010 21:50:59 -0500 Content-Disposition: inline; filename=virtio-serial-wake Sender: kvm-owner@vger.kernel.org List-ID: 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)