qemu-patch-raspberry4/hw/dataplane
Stefan Hajnoczi 71973b0461 dataplane: add event loop
Outside the safety of the global mutex we need to poll on file
descriptors.  I found epoll(2) is a convenient way to do that, although
other options could replace this module in the future (such as an
AioContext-based loop or glib's GMainLoop).

One important feature of this small event loop implementation is that
the loop can be terminated in a thread-safe way.  This allows QEMU to
stop the data plane thread cleanly.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-01-02 15:56:21 +01:00
..
event-poll.c dataplane: add event loop 2013-01-02 15:56:21 +01:00
event-poll.h dataplane: add event loop 2013-01-02 15:56:21 +01:00
hostmem.c
hostmem.h
Makefile.objs dataplane: add event loop 2013-01-02 15:56:21 +01:00
vring.c dataplane: add virtqueue vring code 2013-01-02 15:55:47 +01:00
vring.h dataplane: add virtqueue vring code 2013-01-02 15:55:47 +01:00