qemu/hw/dataplane
Paolo Bonzini 485e3ce88e dataplane: fix hang introduced by AioContext transition
The bug is that the EventNotifiers do have a NULL io_flush callback.
Because _none_ of the callbacks on the dataplane AioContext have such a
callback, aio_poll will simply do nothing.  Fixed by adding the callbacks:
the ioeventfd will always be polled (this can change in the future to
pause/resume the processing during live snapshots or similar operations);
the ioqueue will be polled if there are outstanding requests.

I must admit I have screwed up my testing somehow, because commit
2c20e71 does not work even if cherry-picked on top of 1.4.0, and this
patch fixes it there as well.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-03-15 16:07:51 +01:00
..
hostmem.c dataplane: add host memory mapping code 2013-01-02 15:50:32 +01:00
hostmem.h dataplane: add host memory mapping code 2013-01-02 15:50:32 +01:00
ioq.c hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00
ioq.h dataplane: add Linux AIO request queue 2013-01-02 15:58:03 +01:00
Makefile.objs dataplane: remove EventPoll in favor of AioContext 2013-03-04 09:54:17 +01:00
virtio-blk.c dataplane: fix hang introduced by AioContext transition 2013-03-15 16:07:51 +01:00
virtio-blk.h dataplane: add virtio-blk data plane code 2013-01-02 16:08:47 +01:00
vring.c hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00
vring.h hw: include hw header files with full paths 2013-03-01 15:01:17 +01:00