On Thu, Apr 5, 2012 at 11:59 AM, Jan Kiszka <jan.kis...@siemens.com> wrote:
> Use QemuEvent for signaling POSIX AIO completions. If native eventfd
> support is available, this avoids multiple read accesses to drain
> multiple pending signals.
>
> Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
> ---
>  posix-aio-compat.c |   62 
> ++++++----------------------------------------------
>  1 files changed, 7 insertions(+), 55 deletions(-)

We can save a file descriptor by scheduling a BH (if not already
scheduled) and calling qemu_notify_event() instead of using a
dedicated QemuEvent.  I may have missed something, just got back from
vacation :).

Stefan

Reply via email to