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>
Showing
- aio.c 0 additions, 2 deletionsaio.c
- async.c 15 additions, 15 deletionsasync.c
- hw/hw.h 1 addition, 0 deletionshw/hw.h
- iohandler.c 1 addition, 0 deletionsiohandler.c
- linux-aio.c 1 addition, 0 deletionslinux-aio.c
- main-loop.c 17 additions, 1 deletionmain-loop.c
- main-loop.h 3 additions, 52 deletionsmain-loop.h
- qemu-aio.h 78 additions, 1 deletionqemu-aio.h
- qemu-char.h 1 addition, 0 deletionsqemu-char.h
- qemu-common.h 1 addition, 0 deletionsqemu-common.h
- qemu-coroutine-lock.c 1 addition, 1 deletionqemu-coroutine-lock.c
Loading
Please register or sign in to comment