qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 08/10] Use QemuEvent for POSIX AIO


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v3 08/10] Use QemuEvent for POSIX AIO
Date: Tue, 10 Apr 2012 16:31:49 +0100

On Thu, Apr 5, 2012 at 11:59 AM, Jan Kiszka <address@hidden> 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 <address@hidden>
> ---
>  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

[Prev in Thread] Current Thread [Next in Thread]