]> git.proxmox.com Git - mirror_qemu.git/commit - main-loop.c
aio: introduce AioContext, move bottom halves there
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Oct 2012 22:45:23 +0000 (23:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Oct 2012 08:30:53 +0000 (09:30 +0100)
commitf627aab1ccea119fd94ca9e9df120cea6aab0c67
treef1e4b3a2e763f40b665fdb9511e0da2f947f2fef
parent9958c351eee5b34051fd8061fe24f490ceca1334
aio: introduce AioContext, move bottom halves there

Start introducing AioContext, which will let us remove globals from
aio.c/async.c, and introduce multiple I/O threads.

The bottom half functions now take an additional AioContext argument.
A bottom half is created with a specific AioContext that remains the
same throughout the lifetime.  qemu_bh_new is just a wrapper that
uses a global context.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
aio.c
async.c
hw/hw.h
iohandler.c
linux-aio.c
main-loop.c
main-loop.h
qemu-aio.h
qemu-char.h
qemu-common.h
qemu-coroutine-lock.c