test-thread-pool: use generic AioContext infrastructure
commit934ebf48c0e81dd1f3febb53ae9b8eb8f2a12aab
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 13:52:21 +0000 (13 14:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Feb 2017 11:14:07 +0000 (21 11:14 +0000)
tree5dbe92ef1781d4df4b17630cd26a07d19a28031f
parent35f106e68464d4ed9f2059a93f5c2ecd0750c05b
test-thread-pool: use generic AioContext infrastructure

Once the thread pool starts using aio_co_wake, it will also need
qemu_get_current_aio_context().  Make test-thread-pool create
an AioContext with qemu_init_main_loop, so that stubs/iothread.c
and tests/iothread.c can provide the rest.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170213135235.12274-5-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-thread-pool.c