| Submitter | Stefan Hajnoczi |
|---|---|
| Date | July 18, 2012, 3:07 p.m. |
| Message ID | <1342624074-24650-17-git-send-email-stefanha@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/171738/ |
| State | New |
| Headers | show |
Comments
Patch
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