From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLwEf-0000cc-CM for qemu-devel@nongnu.org; Wed, 01 Jul 2009 05:36:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLwEa-0000Xp-GS for qemu-devel@nongnu.org; Wed, 01 Jul 2009 05:36:12 -0400 Received: from [199.232.76.173] (port=47831 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLwEa-0000XW-3d for qemu-devel@nongnu.org; Wed, 01 Jul 2009 05:36:08 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3099) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLwEZ-0008UA-QU for qemu-devel@nongnu.org; Wed, 01 Jul 2009 05:36:07 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLwEY-00028l-8e for qemu-devel@nongnu.org; Wed, 01 Jul 2009 05:36:06 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] ATAPI pass through Date: Wed, 1 Jul 2009 10:36:01 +0100 References: <200906301634.53197.alexandre.bique@citrix.com> <4A4A3CB7.8090309@redhat.com> <0B4B4929-9F33-4F87-A1D3-16D56661E84B@suse.de> In-Reply-To: <0B4B4929-9F33-4F87-A1D3-16D56661E84B@suse.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907011036.02874.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Alexander Graf , Bique Alexandre > I don't really know what became of the SCSI layer since I haven't > looked at it for quite some time now. > But last time I checked, we had a cdrom emulation in scsi-disk.c _and_ > in ide.c. IIRC ATAPI and SCSI are not the same. They provide very similar functionality, however the actual commands are different. 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. The common bits of the cdrom emulation are already broken out into cdrom.c. USB Mass Storage can (in theory) use both ATAPI and SCSI devices. Currently we only implement SCSI. Paul