• Paolo Bonzini's avatar
    aio: introduce AioContext, move bottom halves there · f627aab1
    Paolo Bonzini authored
    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: default avatarPaolo Bonzini <pbonzini@redhat.com>
linux-aio.c 5.54 KB