From: Anthony Liguori <aliguori@us.ibm.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Ryan Harper <ryanh@us.ibm.com>,
kvm@vger.kernel.org
Subject: Re: [PATCH][RFC] Refactor AIO to allow multiple AIO implementations
Date: Thu, 11 Sep 2008 07:45:54 -0500 [thread overview]
Message-ID: <48C91302.70207@us.ibm.com> (raw)
In-Reply-To: <48C8CD4E.1020705@redhat.com>
Gerd Hoffmann wrote:
> Anthony Liguori wrote:
>
>> This patch refactors the AIO layer to allow multiple AIO implementations. It's
>> only possible because of the recent signalfd() patch.
>>
>> Right now, the AIO infrastructure is pretty specific to the block raw backend.
>> For other block devices to implement AIO, the qemu_aio_wait function must support
>> registration. This patch introduces a new function, qmeu_aio_set_fd_handler, which
>> can be used to register a file descriptor to be called back. qemu_aio_wait() now
>> polls a set of file descriptors registered with this function until one becomes
>> readable or writable.
>>
>
> Hmm, what is the long-term plan for this?
Step one is to move the generic aio bits out of block-raw-posix (which
this patch does).
Step two is to move the posix-aio routines out of block-raw-posix.
Step three would be to add a generic interface to allow block-raw-posix
to use multiple aio implementations
Step four would be to add a new aio implementation (I think the best
route is a thread-pool based implementation).
Regards,
Anthony Liguori
> Separating out the completion
> notification is a nice first step. Most of the aio infrastructure is
> still in the block raw backend though. IMHO it doesn't belong there.
>
> The aio implementation(s) should be a separate entity usable by all
> block backends to invoke aio requests, without having to care about how
> this is actually implemented (threads, linux aio, posix aio, whatever).
>
> cheers,
> Gerd
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <aliguori@us.ibm.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Ryan Harper <ryanh@us.ibm.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCH][RFC] Refactor AIO to allow multiple AIO implementations
Date: Thu, 11 Sep 2008 07:45:54 -0500 [thread overview]
Message-ID: <48C91302.70207@us.ibm.com> (raw)
In-Reply-To: <48C8CD4E.1020705@redhat.com>
Gerd Hoffmann wrote:
> Anthony Liguori wrote:
>
>> This patch refactors the AIO layer to allow multiple AIO implementations. It's
>> only possible because of the recent signalfd() patch.
>>
>> Right now, the AIO infrastructure is pretty specific to the block raw backend.
>> For other block devices to implement AIO, the qemu_aio_wait function must support
>> registration. This patch introduces a new function, qmeu_aio_set_fd_handler, which
>> can be used to register a file descriptor to be called back. qemu_aio_wait() now
>> polls a set of file descriptors registered with this function until one becomes
>> readable or writable.
>>
>
> Hmm, what is the long-term plan for this?
Step one is to move the generic aio bits out of block-raw-posix (which
this patch does).
Step two is to move the posix-aio routines out of block-raw-posix.
Step three would be to add a generic interface to allow block-raw-posix
to use multiple aio implementations
Step four would be to add a new aio implementation (I think the best
route is a thread-pool based implementation).
Regards,
Anthony Liguori
> Separating out the completion
> notification is a nice first step. Most of the aio infrastructure is
> still in the block raw backend though. IMHO it doesn't belong there.
>
> The aio implementation(s) should be a separate entity usable by all
> block backends to invoke aio requests, without having to care about how
> this is actually implemented (threads, linux aio, posix aio, whatever).
>
> cheers,
> Gerd
>
>
next prev parent reply other threads:[~2008-09-11 12:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-10 15:49 [PATCH][RFC] Refactor AIO to allow multiple AIO implementations Anthony Liguori
2008-09-10 15:49 ` [Qemu-devel] " Anthony Liguori
2008-09-11 7:48 ` Gerd Hoffmann
2008-09-11 7:48 ` [Qemu-devel] " Gerd Hoffmann
2008-09-11 12:45 ` Anthony Liguori [this message]
2008-09-11 12:45 ` Anthony Liguori
2008-09-11 13:15 ` Gerd Hoffmann
2008-09-11 13:15 ` [Qemu-devel] " Gerd Hoffmann
2008-09-11 13:28 ` Jamie Lokier
2008-09-11 14:09 ` Anthony Liguori
2008-09-11 14:09 ` Anthony Liguori
2008-09-11 14:04 ` Anthony Liguori
2008-09-11 14:04 ` [Qemu-devel] " Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C91302.70207@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=ryanh@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.