From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLvPj-0008E5-4a for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:43:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLvPe-0008De-If for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:43:34 -0400 Received: from [199.232.76.173] (port=36677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLvPe-0008DZ-Dj for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:43:30 -0400 Received: from verein.lst.de ([213.95.11.210]:33728) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MLvPd-0007dY-Tp for qemu-devel@nongnu.org; Wed, 01 Jul 2009 04:43:30 -0400 Date: Wed, 1 Jul 2009 10:43:25 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH] ATAPI pass through Message-ID: <20090701084325.GA2959@lst.de> References: <200906301634.53197.alexandre.bique@citrix.com> <20090630170100.GA1678@lst.de> <200906301855.42855.alexandre.bique@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200906301855.42855.alexandre.bique@citrix.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bique Alexandre Cc: Christoph Hellwig , "qemu-devel@nongnu.org" On Tue, Jun 30, 2009 at 06:55:42PM +0100, Bique Alexandre wrote: > I can switch to aio_ioctl, and use CDROM_SEND_PACKET ioctl. CDROM_SEND_PACKET has a rather horrible API and should be avoided. Just use SG_IO like the the scsi passthrough code. In fact there might be some quite a few ways to unify that code if you're motivated. > Is it possible to send multiple requests at the same time with aio_ioctl ? SG_IO sends one requests per ioctl, but you can have multiple requests outstanding on a single file descriptor. > When CONFIG_AIO is not available ? aio_ioctl needs CONFIG_AIO - but on Linux hosts where you have bsd/sg/etc it always is available.