Home
last modified time | relevance | path

Searched hist:"845 ca10dd089b4e48f0a79bad005fb30eb77584e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/include/block/
H A Daio.hdiff 845ca10dd089b4e48f0a79bad005fb30eb77584e Wed Jul 09 04:53:01 CDT 2014 Paolo Bonzini <pbonzini@redhat.com> AioContext: take bottom halves into account when computing aio_poll timeout

Right now, QEMU invokes aio_bh_poll before the "poll" phase
of aio_poll. It is simpler to do it afterwards and skip the
"poll" phase altogether when the OS-dependent parts of AioContext
are invoked from GSource. This way, AioContext behaves more
similarly when used as a GSource vs. when used as stand-alone.

As a start, take bottom halves into account when computing the
poll timeout. If a bottom half is ready, do a non-blocking
poll. As a side effect, this makes idle bottom halves work
with aio_poll; an improvement, but not really an important
one since they are deprecated.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>