diff options
| author | Fam Zheng | 2016-04-22 15:53:52 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-04-22 16:43:42 +0200 |
| commit | bcd82a968fbf7d8156eefbae3f3aab59ad576fa2 (patch) | |
| tree | 02800cce1b1c71a844b5e501fb968b189c3ac89a /iohandler.c | |
| parent | util: align memory allocations to 2M on AArch64 (diff) | |
| download | qemu-bcd82a968fbf7d8156eefbae3f3aab59ad576fa2.tar.gz qemu-bcd82a968fbf7d8156eefbae3f3aab59ad576fa2.tar.xz qemu-bcd82a968fbf7d8156eefbae3f3aab59ad576fa2.zip | |
iohandler: Introduce iohandler_get_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 'iohandler.c')
| -rw-r--r-- | iohandler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/iohandler.c b/iohandler.c index 3f23433b5a..f2fc8a9bd6 100644 --- a/iohandler.c +++ b/iohandler.c @@ -44,6 +44,12 @@ static void iohandler_init(void) } } +AioContext *iohandler_get_aio_context(void) +{ + iohandler_init(); + return iohandler_ctx; +} + GSource *iohandler_get_g_source(void) { iohandler_init(); |
