From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLy0V-0004FU-Qr for qemu-devel@nongnu.org; Wed, 01 Jul 2009 07:29:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLy0R-00048u-5M for qemu-devel@nongnu.org; Wed, 01 Jul 2009 07:29:43 -0400 Received: from [199.232.76.173] (port=54225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLy0Q-00048Z-Sd for qemu-devel@nongnu.org; Wed, 01 Jul 2009 07:29:39 -0400 Received: from verein.lst.de ([213.95.11.210]:36210) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MLy0Q-0007SY-Cs for qemu-devel@nongnu.org; Wed, 01 Jul 2009 07:29:38 -0400 Date: Wed, 1 Jul 2009 13:29:31 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH] ATAPI pass through Message-ID: <20090701112931.GC10455@lst.de> References: <200906301634.53197.alexandre.bique@citrix.com> <4A4A3CB7.8090309@redhat.com> <0B4B4929-9F33-4F87-A1D3-16D56661E84B@suse.de> <200907011036.02874.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907011036.02874.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Kevin Wolf , qemu-devel@nongnu.org, Bique Alexandre , Alexander Graf On Wed, Jul 01, 2009 at 10:36:01AM +0100, Paul Brook wrote: > IIRC ATAPI and SCSI are not the same. They provide very similar functionality, > however the actual commands are different. ATAPI has somewhat more limited command sets, mostly because it does not support the traditional 6 byte commands and doesn't support the scsi block commands (SBC) used for disks. For CDROMs both traditional parallel scsi and atap use the same command set (MMC in various revisions) > While it is possible to connect SATA drives to a SAS HBA, I believe this is > done by tunneling IDE/ATAPI commands, rather then using native SCSI commands. There are no ATAPI hard drives, just plain ATA which is not a SCSI command set at all. For directly connected disks on a SAS HBA the HBA speaks plain SATA to the disk (as the SAS and SATA link layers are the same). If you connect a SATA disk to a SAS expander the expander talks SATA to the disk and the expander encapsulates it in STP which is just a thin layer of SAS routing information around the ATA command block, similar to the SSP protocol used to talk to SCSI devices which is a thin layer around SCSI command blocks. I would expect an ATAPI cdrom attached to a SAS expander to talk MMC command blocks over ATAPI over STP, but I haven't actually seen this setup in practice.