qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC v9 16/27] virtio-blk: Kick data plane thread using eve


From: Stefan Hajnoczi
Subject: [Qemu-devel] [RFC v9 16/27] virtio-blk: Kick data plane thread using event notifier set
Date: Wed, 18 Jul 2012 16:07:43 +0100

---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]