summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-04-22 21:53:53 +0800
committerKevin Wolf <kwolf@redhat.com>2016-04-22 16:43:56 +0200
commit54e18d35e44c48cf6e13c4ce09962c30b595b72a (patch)
tree1c0b141d6ef2e65614205877318d7589fc24c7c4 /util
parentbcd82a968fbf7d8156eefbae3f3aab59ad576fa2 (diff)
downloadqemu-54e18d35e44c48cf6e13c4ce09962c30b595b72a.zip
event-notifier: Add "is_external" parameter
All callers pass "false" keeping the old semantics. The windows implementation doesn't distinguish the flag yet. On posix, it is passed down to the underlying aio context. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/event_notifier-posix.c4
-rw-r--r--util/event_notifier-win32.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c
index e150301c33..c1f0d79b34 100644
--- a/util/event_notifier-posix.c
+++ b/util/event_notifier-posix.c
@@ -91,9 +91,11 @@ int event_notifier_get_fd(const EventNotifier *e)
}
int event_notifier_set_handler(EventNotifier *e,
+ bool is_external,
EventNotifierHandler *handler)
{
- qemu_set_fd_handler(e->rfd, (IOHandler *)handler, NULL, e);
+ aio_set_fd_handler(iohandler_get_aio_context(), e->rfd, is_external,
+ (IOHandler *)handler, NULL, e);
return 0;
}
diff --git a/util/event_notifier-win32.c b/util/event_notifier-win32.c
index 14b4f7d2c0..de87df02d6 100644
--- a/util/event_notifier-win32.c
+++ b/util/event_notifier-win32.c
@@ -33,6 +33,7 @@ HANDLE event_notifier_get_handle(EventNotifier *e)
}
int event_notifier_set_handler(EventNotifier *e,
+ bool is_external,
EventNotifierHandler *handler)
{
if (handler) {