diff options
| author | Paolo Bonzini | 2017-01-10 11:54:52 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2017-01-16 17:52:35 +0100 |
| commit | d6da1e9eca939e8f9d41639be17c4bf5af7d5625 (patch) | |
| tree | a97b13d93a53d6512b48c8483b75e2516f2c72c3 /iohandler.c | |
| parent | stubs: move vhost stubs to stubs/vhost.o (diff) | |
| download | qemu-d6da1e9eca939e8f9d41639be17c4bf5af7d5625.tar.gz qemu-d6da1e9eca939e8f9d41639be17c4bf5af7d5625.tar.xz qemu-d6da1e9eca939e8f9d41639be17c4bf5af7d5625.zip | |
event_notifier: cleanups around event_notifier_set_handler
Remove the useless is_external argument. Since the iohandler
AioContext is never used for block devices, aio_disable_external
is never called on it. This lets us remove stubs/iohandler.c.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'iohandler.c')
| -rw-r--r-- | iohandler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/iohandler.c b/iohandler.c index eb625d93dd..623b55b9ec 100644 --- a/iohandler.c +++ b/iohandler.c @@ -66,6 +66,14 @@ void qemu_set_fd_handler(int fd, fd_read, fd_write, NULL, opaque); } +void event_notifier_set_handler(EventNotifier *e, + EventNotifierHandler *handler) +{ + iohandler_init(); + aio_set_event_notifier(iohandler_ctx, e, false, + handler, NULL); +} + /* reaping of zombies. right now we're not passing the status to anyone, but it would be possible to add a callback. */ #ifndef _WIN32 |
