From patchwork Tue Apr 27 12:34:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 51076 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D026FB7D5B for ; Tue, 27 Apr 2010 23:18:24 +1000 (EST) Received: from localhost ([127.0.0.1]:54703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6kdq-0004pW-H1 for incoming@patchwork.ozlabs.org; Tue, 27 Apr 2010 09:15:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6k1v-0006GY-A5 for qemu-devel@nongnu.org; Tue, 27 Apr 2010 08:36:47 -0400 Received: from [140.186.70.92] (port=51521 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6k1t-0006Fi-Od for qemu-devel@nongnu.org; Tue, 27 Apr 2010 08:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6k1p-0002tG-Mr for qemu-devel@nongnu.org; Tue, 27 Apr 2010 08:36:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50119) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6k1p-0002t0-Fd for qemu-devel@nongnu.org; Tue, 27 Apr 2010 08:36:41 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3RCadAA028383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Apr 2010 08:36:39 -0400 Received: from localhost (vpn-238-78.phx2.redhat.com [10.3.238.78]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3RCacNR006820; Tue, 27 Apr 2010 08:36:39 -0400 From: Amit Shah To: Anthony Liguori Date: Tue, 27 Apr 2010 18:04:12 +0530 Message-Id: <1272371652-23087-19-git-send-email-amit.shah@redhat.com> In-Reply-To: <1272371652-23087-18-git-send-email-amit.shah@redhat.com> References: <1272371652-23087-1-git-send-email-amit.shah@redhat.com> <1272371652-23087-2-git-send-email-amit.shah@redhat.com> <1272371652-23087-3-git-send-email-amit.shah@redhat.com> <1272371652-23087-4-git-send-email-amit.shah@redhat.com> <1272371652-23087-5-git-send-email-amit.shah@redhat.com> <1272371652-23087-6-git-send-email-amit.shah@redhat.com> <1272371652-23087-7-git-send-email-amit.shah@redhat.com> <1272371652-23087-8-git-send-email-amit.shah@redhat.com> <1272371652-23087-9-git-send-email-amit.shah@redhat.com> <1272371652-23087-10-git-send-email-amit.shah@redhat.com> <1272371652-23087-11-git-send-email-amit.shah@redhat.com> <1272371652-23087-12-git-send-email-amit.shah@redhat.com> <1272371652-23087-13-git-send-email-amit.shah@redhat.com> <1272371652-23087-14-git-send-email-amit.shah@redhat.com> <1272371652-23087-15-git-send-email-amit.shah@redhat.com> <1272371652-23087-16-git-send-email-amit.shah@redhat.com> <1272371652-23087-17-git-send-email-amit.shah@redhat.com> <1272371652-23087-18-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Amit Shah , Marcelo Tosatti , qemu list , Juan Quintela Subject: [Qemu-devel] [PATCH v6 18/18] virtio-serial-bus: wake up iothread upon guest read notification X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Marcelo Tosatti Wake up iothread when buffers are consumed. Signed-off-by: Marcelo Tosatti Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 97694d5..ee868e9 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@ -417,6 +417,7 @@ static void handle_output(VirtIODevice *vdev, VirtQueue *vq) static void handle_input(VirtIODevice *vdev, VirtQueue *vq) { + qemu_notify_event(); } static uint32_t get_features(VirtIODevice *vdev, uint32_t features)