All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2 v2] Direct IDE I/O
Date: Wed, 05 Dec 2007 08:47:32 -0600	[thread overview]
Message-ID: <4756BA04.7060104@codemonkey.ws> (raw)
In-Reply-To: <47557DC8.7080206@redhat.com>

Gerd Hoffmann wrote:
> Anthony Liguori wrote:
>   
>> Gerd Hoffmann wrote:
>>     
>   Hi,
>
>   
>> I really want to use readv/writev though.  With virtio, we get a
>> scatter/gather list for each IO request.
>>     
>
> Yep, I've also missed pwritev (or whatever that syscall would be named).
>
>   
>> Once I post the virtio-blk driver, I'll follow up a little later with
>> some refactoring of the block device layers.  I think it can be made
>> much simpler while still remaining asynchronous.
>>
>>     
>>> IMHO the only alternative to that scheme would be to turn the block
>>> drivers in some kind of remapping drivers for the various file formats
>>> which don't actually perform the I/O.  Then you can handle the actual
>>> I/O in a generic way using whatever API is available, be it posix-aio,
>>> linux-aio or slow-sync-io.
>>>       
>> That's part of my plan.
>>     
>
> Oh, cool.  Can you also turn them into a sane shared library while being
> at it?  The current approach to compile it once for qemu and once for
> qemu-img with -DQEMU_TOOL isn't that great.  But if you factor out the
> actual I/O the block-raw.c code should have no need to mess with qemu
> internals any more and become much cleaner and simpler ...
>   

Yeah, it is definitely something that should be turned into a shared 
library.  I don't think I'll attempt that at first but I do agree it's 
the right direction to move toward.

Regards,

Anthony Liguori

> cheers,
>   Gerd
>
>
>
>
>   

  reply	other threads:[~2007-12-05 14:47 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03 10:09 [Qemu-devel] [PATCH 0/2 v2] Open disk images with O_DIRECT Laurent Vivier
2007-12-03 10:09 ` [Qemu-devel] [PATCH 1/2 v2] Add "cache" parameter to "-drive" Laurent Vivier
2007-12-03 10:09   ` [Qemu-devel] [PATCH 2/2 v2] Direct IDE I/O Laurent Vivier
2007-12-03 10:23     ` Fabrice Bellard
2007-12-03 10:30       ` Laurent Vivier
2007-12-03 11:40         ` Markus Hitter
2007-12-03 15:39           ` Paul Brook
2007-12-03 19:26             ` Samuel Thibault
2007-12-03 15:54         ` Anthony Liguori
2007-12-03 17:08           ` Samuel Thibault
2007-12-03 17:17             ` Paul Brook
2007-12-03 17:49               ` Jamie Lokier
2007-12-03 18:08                 ` Anthony Liguori
2007-12-03 18:40                   ` Jamie Lokier
2007-12-03 18:06             ` Anthony Liguori
2007-12-03 19:10               ` Laurent Vivier
2007-12-03 19:16                 ` Paul Brook
2007-12-03 21:36                   ` Anthony Liguori
2007-12-04 12:49                     ` Gerd Hoffmann
2007-12-04 13:02                       ` Laurent Vivier
2007-12-04  8:13                   ` Laurent Vivier
2007-12-03 21:13                 ` Gerd Hoffmann
2007-12-03 21:23                   ` Samuel Thibault
2007-12-03 21:38                   ` Anthony Liguori
2007-12-04 13:21                     ` Gerd Hoffmann
2007-12-04 15:03                       ` Anthony Liguori
2007-12-04 16:18                         ` Gerd Hoffmann
2007-12-05 14:47                           ` Anthony Liguori [this message]
2007-12-03 19:14               ` Paul Brook
2007-12-03 19:00           ` Laurent Vivier
2007-12-03 11:14       ` Johannes Schindelin

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=4756BA04.7060104@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /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.