From patchwork Fri Mar 12 02:45:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 85177 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2C2p2ff030979 for ; Fri, 12 Mar 2010 02:51:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755909Ab0CLCu7 (ORCPT ); Thu, 11 Mar 2010 21:50:59 -0500 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 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 o2C2oqSX031172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Mar 2010 21:50:53 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2C2oqsi019604; Thu, 11 Mar 2010 21:50:52 -0500 Received: from amt.cnet (vpn-10-50.rdu.redhat.com [10.11.10.50]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o2C2ooK9017595; Thu, 11 Mar 2010 21:50:51 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 4313B68AC5B; Thu, 11 Mar 2010 23:49:53 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o2C2nqwG032751; Thu, 11 Mar 2010 23:49:52 -0300 Message-Id: <20100312024808.300129379@redhat.com> User-Agent: quilt/0.47-1 Date: Thu, 11 Mar 2010 23:45:51 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: avi@redhat.com, anthony@codemonkey.ws, amit.shah@redhat.com, Marcelo Tosatti Subject: [patch 2/2] virtio-serial-bus: wake up iothread upon guest read notification References: <20100312024549.787893344@redhat.com> Content-Disposition: inline; filename=virtio-serial-wake X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 12 Mar 2010 02:51:03 +0000 (UTC) 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)