From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrVrv-00062F-TA for qemu-devel@nongnu.org; Wed, 18 Jul 2012 11:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrVrr-0000nw-Uc for qemu-devel@nongnu.org; Wed, 18 Jul 2012 11:08:51 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:49686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrVrr-0000ne-LH for qemu-devel@nongnu.org; Wed, 18 Jul 2012 11:08:47 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Jul 2012 16:08:47 +0100 Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6IF8cLs2891842 for ; Wed, 18 Jul 2012 16:08:38 +0100 Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6IF8bki007731 for ; Wed, 18 Jul 2012 09:08:38 -0600 From: Stefan Hajnoczi Date: Wed, 18 Jul 2012 16:07:43 +0100 Message-Id: <1342624074-24650-17-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1342624074-24650-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1342624074-24650-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC v9 16/27] virtio-blk: Kick data plane thread using event notifier set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , kvm@vger.kernel.org, "Michael S. Tsirkin" , Khoa Huynh , Paolo Bonzini , Asias He --- hw/virtio-blk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 1616be5..d75c187 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -339,8 +339,7 @@ static void virtio_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) virtio_blk_set_status(vdev, VIRTIO_CONFIG_S_DRIVER_OK); /* start the thread */ /* Now kick the thread */ - uint64_t dummy = 1; - ssize_t unused __attribute__((unused)) = write(event_notifier_get_fd(virtio_queue_get_host_notifier(s->vq)), &dummy, sizeof dummy); + event_notifier_set(virtio_queue_get_host_notifier(s->vq)); } /* coalesce internal state, copy to pci i/o region 0 -- 1.7.10.4