]> git.proxmox.com Git - qemu.git/commit - main-loop.c
main-loop: add qemu_get_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Mar 2013 12:41:44 +0000 (13:41 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:50 +0000 (16:07 +0100)
commit5f3aa1ff4781f39e05b9892d58319a09fedc8918
tree5ba40541b24dfde3d6b500c1080d068417f17d55
parented9ba7246758e3250849bfa0a055b4eb98fc5152
main-loop: add qemu_get_aio_context()

It is very useful to get the main loop AioContext, which is a static
variable in main-loop.c.

I'm not sure whether qemu_get_aio_context() will be necessary in the
future once devices focus on using their own AioContext instead of the
main loop AioContext, but for now it allows us to refactor code to
support multiple AioContext while actually passing the main loop
AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/main-loop.h
main-loop.c