]> git.proxmox.com Git - qemu.git/commit
dataplane: remove EventPoll in favor of AioContext
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 09:40:34 +0000 (10:40 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 4 Mar 2013 08:54:17 +0000 (09:54 +0100)
commit2c20e711de308cdebc91ae4b7a983396b56f1de0
treeb9058c7bc4da0ca37c944fc0af0837701512a594
parent69b302b2044a9a0f6d157d25b39a91ff7124c61f
dataplane: remove EventPoll in favor of AioContext

During the review of the dataplane code, the EventPoll API morphed itself
(not concidentially) into something very very similar to an AioContext.
Thus, it is trivial to convert virtio-blk-dataplane to use AioContext,
and a first baby step towards letting dataplane talk directly to the
QEMU block layer.

The only interesting note is the value-copy of EventNotifiers.  At least
in my opinion this is part of the EventNotifier API and is even portable
to Windows.  Of course, in this case you should not close the notifier's
underlying file descriptors or handle with event_notifier_cleanup.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/dataplane/Makefile.objs
hw/dataplane/event-poll.c [deleted file]
hw/dataplane/event-poll.h [deleted file]
hw/dataplane/virtio-blk.c