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 Message-ID: <200904281852.13916.borntraeger@de.ibm.com> References: <20090427082606.GA32604@lst.de> <20090428095154.GB4137@lst.de> <49F730AD.8090705@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Christoph Hellwig , Rusty Russell , qemu-devel@nongnu.org, kvm@vger.kernel.org, Hannes Reinecke To: Anthony Liguori Return-path: Received: from mtagate1.uk.ibm.com ([194.196.100.161]:57733 "EHLO mtagate1.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756296AbZD1QwS (ORCPT ); Tue, 28 Apr 2009 12:52:18 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id n3SGqHWn006432 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 n3SGqHoO1253528 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 n3SGqGDB000357 for ; Tue, 28 Apr 2009 17:52:17 +0100 In-Reply-To: <49F730AD.8090705@codemonkey.ws> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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