From patchwork Mon Feb 22 13:59:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 81146 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 o1ME3KaD013916 for ; Mon, 22 Feb 2010 14:03:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753265Ab0BVODS (ORCPT ); Mon, 22 Feb 2010 09:03:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39328 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753260Ab0BVODP (ORCPT ); Mon, 22 Feb 2010 09:03:15 -0500 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 o1ME3ES5021187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Feb 2010 09:03:14 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1ME3DK1006274; Mon, 22 Feb 2010 09:03:13 -0500 Received: from amt.cnet (vpn-11-163.rdu.redhat.com [10.11.11.163]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o1ME3C48004577; Mon, 22 Feb 2010 09:03:12 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 17E92652013; Mon, 22 Feb 2010 11:02:55 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o1ME2rHo021004; Mon, 22 Feb 2010 11:02:53 -0300 Message-Id: <20100222140209.878250600@amt.cnet> User-Agent: quilt/0.47-1 Date: Mon, 22 Feb 2010 10:59:07 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: avi@redhat.com, Marcelo Tosatti Subject: [patch uq/master 1/2] virtio-pci: wake up iothread on VIRTIO_PCI_QUEUE_NOTIFY References: <20100222135906.347393434@amt.cnet> Content-Disposition: inline; filename=virtio-iothread-wake X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 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]); Mon, 22 Feb 2010 14:03:21 +0000 (UTC) Index: qemu/hw/virtio-pci.c =================================================================== --- qemu.orig/hw/virtio-pci.c +++ qemu/hw/virtio-pci.c @@ -204,6 +204,7 @@ static void virtio_ioport_write(void *op break; case VIRTIO_PCI_QUEUE_NOTIFY: virtio_queue_notify(vdev, val); + qemu_notify_event(); break; case VIRTIO_PCI_STATUS: vdev->status = val & 0xFF;