From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyqXm-0003w9-T0 for qemu-devel@nongnu.org; Tue, 28 Apr 2009 12:52:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyqXi-0003tp-AO for qemu-devel@nongnu.org; Tue, 28 Apr 2009 12:52:30 -0400 Received: from [199.232.76.173] (port=50214 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyqXi-0003tk-89 for qemu-devel@nongnu.org; Tue, 28 Apr 2009 12:52:26 -0400 Received: from mtagate4.uk.ibm.com ([195.212.29.137]:59029) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LyqXh-0003xK-MU for qemu-devel@nongnu.org; Tue, 28 Apr 2009 12:52:26 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate4.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n3SGqH0k100194 for ; Tue, 28 Apr 2009 16:52:17 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3SGqHOH1359888 for ; Tue, 28 Apr 2009 17:52:17 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3SGqGD5000357 for ; Tue, 28 Apr 2009 17:52:17 +0100 From: Christian Borntraeger Subject: Re: [Qemu-devel] Re: [PATCH] virtio-blk: add SGI_IO passthru support Date: Tue, 28 Apr 2009 18:52:13 +0200 References: <20090427082606.GA32604@lst.de> <20090428095154.GB4137@lst.de> <49F730AD.8090705@codemonkey.ws> In-Reply-To: <49F730AD.8090705@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904281852.13916.borntraeger@de.ibm.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Hannes Reinecke , Rusty Russell , Christoph Hellwig , kvm@vger.kernel.org, qemu-devel@nongnu.org Am Tuesday 28 April 2009 18:37:01 schrieb Anthony Liguori: > Christoph Hellwig wrote: > >> Should we be > >> handling some SCSI cmds internally to QEMU (like eject operations) and > >> supporting media=cdrom in -drive for if=virtio? > >> > > > > Not quite yet. Eventually I want to support a virtio-scsi kind of > > transport which would use the same virtio-blk protocol but only send > > scsi commands. We'd need a different driver on the Linux side for > > it that registers to the scsi layer. On the QEMU side it could either > > do pass-through to a real scsi device using SG_IO or use the existing > > command scsi emulator in scsi-disk.c. > > > > Ah, excellent. I think that's a great thing to do. So do you think > virtio-scsi would deprecate virtio-blk? There are lots of other block device drivers with strange characteristics. For example dasd/xpram disks with 4k block size or other disks with strange partitioning schemes. Doing a scsi emulation on top of these beasts looks possible but far from ideal. So I guess we will need virtio_blk for non-scsi block devices. Christian