qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/3] aio-context start to eliminate io_flush
@ 2013-03-28 21:52 Anthony Liguori
  2013-03-28 21:52 ` [Qemu-devel] [RFC PATCH 1/3] aio-context: if io_flush isn't provided, assume "always busy" Anthony Liguori
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Anthony Liguori @ 2013-03-28 21:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Paolo Bonzini, Mike Roth

Mike and I spent some time talking about how to move forward with
AioContext vs. glib.  I think the best proposal so far is to add
a common API on top of the *aio* interfaces and the existing
qemu_set_fd_handler main loop functions.

Then we get code sharing while still having multiple main loop
implementations until we can converge on a single one since the users
will consume the same interface at least.

The only thing standing in the way is the inability to map the semantics
of io_flush.  I think an easy way to do this is to keep track of the
events registered through *aio* and let aio_flush() block as long as
any event is registered.

That's precisely what this series starts to do.  It's untested and
extremely incomplete but I wanted to get some feedback first before we
put any serious effort into this and make sure it's an agreeable
approach.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-04-08 15:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 21:52 [Qemu-devel] [RFC PATCH 0/3] aio-context start to eliminate io_flush Anthony Liguori
2013-03-28 21:52 ` [Qemu-devel] [RFC PATCH 1/3] aio-context: if io_flush isn't provided, assume "always busy" Anthony Liguori
2013-03-28 23:37   ` Paolo Bonzini
2013-04-02  8:34     ` Kevin Wolf
2013-04-08 15:28     ` Stefan Hajnoczi
2013-03-28 21:52 ` [Qemu-devel] [RFC PATCH 2/3] sheepdog: pass NULL for io_flush Anthony Liguori
2013-03-28 23:38   ` Paolo Bonzini
2013-04-02  8:37   ` Kevin Wolf
2013-04-02 10:15     ` Paolo Bonzini
2013-04-08 15:31     ` Stefan Hajnoczi
2013-04-08 15:38       ` Kevin Wolf
2013-03-28 21:52 ` [Qemu-devel] [RFC PATCH 3/3] rbd: remove aio handler when no requests are pending Anthony Liguori
2013-03-28 23:39   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).