qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: Fabrice Bellard <fabrice@bellard.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/5] SCSI passthrough cleanup
Date: Thu, 24 Jan 2008 09:17:40 +0100	[thread overview]
Message-ID: <1201162660.4053.15.camel@frecb07144> (raw)
In-Reply-To: <4797A90B.8070703@bellard.org>

Le mercredi 23 janvier 2008 à 21:52 +0100, Fabrice Bellard a écrit :
> Two questions:
> 
> - Why do you use AIO ? If the Linux sg device supports selects, then
> using the QEMU select() callback suffices.

Basically because when I want to have asynchronous I/O I use AIO...
If you explain me briefly how to use selects in Qemu I can try.

> - Why do you use a block device ?

Because to communicate with SG device we need a file descriptor, and
using current mechanism (with -drive) allows to have this file
descriptor without modifying anything else (without adding a new
parameter). Moreover, to use Qemu AIO I need a BlockDriverState (but it
related to the first question...)

I agree to change all of this if you give me tips to use selects in Qemu
and if you thing adding a new command line parameter is not an issue.

> Regards,
> 
> Fabrice.

Thank you for your comments and help,
Laurent

> Laurent Vivier wrote:
> > This series of patches makes some cleanups in SCSI passthrough and
> > add functionnalities.
> > 
> > [PATCH 1/5] reverse scsi-generic
> > 
> > Reverse previous implementation and restore block-raw-posix.c.
> > 
> > [PATCH 2/5] Move AIO
> > 
> > This patche moves raw AIO part from block-raw-posix.c to qemu-aio-raw.c.
> > 
> > [PATCH 3/5] Add block SG interface
> > 
> > This patch re-implement scsi-generic.c using a new block interface.
> > 
> > [PATCH 4/5] DVD movie support
> > 
> > This patch allows to read a protected/encrypted movie from a DVD.
> > 
> > [PATCH 5/5] SCSI device DMA split
> > 
> > This patch allows to split a READ or WRITE into several READ or WRITE.
> > 
> > Laurent
> > 
> > 
> > 
> > 
> > 
> 
> 
-- 
----------------- Laurent.Vivier@bull.net  ------------------
  "La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry

      reply	other threads:[~2008-01-24  8:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-23 16:12 [Qemu-devel] [PATCH 0/5] SCSI passthrough cleanup Laurent Vivier
2008-01-23 16:12 ` [Qemu-devel] [PATCH 1/5] reverse scsi-generic Laurent Vivier
2008-01-23 16:12   ` [Qemu-devel] [PATCH 2/5] Move AIO Laurent Vivier
2008-01-23 16:12     ` [Qemu-devel] [PATCH 3/5] Add block SG interface Laurent Vivier
2008-01-23 16:12       ` [Qemu-devel] [PATCH 4/5] DVD movie support Laurent Vivier
2008-01-23 16:12         ` [Qemu-devel] [PATCH 5/5] SCSI device DMA split Laurent Vivier
2008-01-23 20:52 ` [Qemu-devel] [PATCH 0/5] SCSI passthrough cleanup Fabrice Bellard
2008-01-24  8:17   ` Laurent Vivier [this message]

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=1201162660.4053.15.camel@frecb07144 \
    --to=laurent.vivier@bull.net \
    --cc=fabrice@bellard.org \
    --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 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).