From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHxIX-0001vr-2b for qemu-devel@nongnu.org; Thu, 24 Jan 2008 03:18:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHxIV-0001v7-Kl for qemu-devel@nongnu.org; Thu, 24 Jan 2008 03:18:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHxIV-0001uu-Fb for qemu-devel@nongnu.org; Thu, 24 Jan 2008 03:18:55 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHxIU-00073e-Ry for qemu-devel@nongnu.org; Thu, 24 Jan 2008 03:18:55 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHxH5-00086c-Gp for qemu-devel@nongnu.org; Thu, 24 Jan 2008 03:17:28 -0500 Subject: Re: [Qemu-devel] [PATCH 0/5] SCSI passthrough cleanup From: Laurent Vivier In-Reply-To: <4797A90B.8070703@bellard.org> References: <12011047731303@bull.net> <4797A90B.8070703@bellard.org> Date: Thu, 24 Jan 2008 09:17:40 +0100 Message-Id: <1201162660.4053.15.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org Le mercredi 23 janvier 2008 =C3=A0 21:52 +0100, Fabrice Bellard a =C3=A9cri= t : > Two questions: >=20 > - 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, >=20 > 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. > >=20 > > [PATCH 1/5] reverse scsi-generic > >=20 > > Reverse previous implementation and restore block-raw-posix.c. > >=20 > > [PATCH 2/5] Move AIO > >=20 > > This patche moves raw AIO part from block-raw-posix.c to qemu-aio-raw.c= . > >=20 > > [PATCH 3/5] Add block SG interface > >=20 > > This patch re-implement scsi-generic.c using a new block interface. > >=20 > > [PATCH 4/5] DVD movie support > >=20 > > This patch allows to read a protected/encrypted movie from a DVD. > >=20 > > [PATCH 5/5] SCSI device DMA split > >=20 > > This patch allows to split a READ or WRITE into several READ or WRITE. > >=20 > > Laurent > >=20 > >=20 > >=20 > >=20 > >=20 >=20 >=20 --=20 ----------------- Laurent.Vivier@bull.net ------------------ "La perfection est atteinte non quand il ne reste rien =C3=A0 ajouter mais quand il ne reste rien =C3=A0 enlever." Saint Exup=C3=A9ry