From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lyjyu-0004rU-Pj for qemu-devel@nongnu.org; Tue, 28 Apr 2009 05:52:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lyjyp-0004q0-EA for qemu-devel@nongnu.org; Tue, 28 Apr 2009 05:52:03 -0400 Received: from [199.232.76.173] (port=55279 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lyjyp-0004px-5l for qemu-devel@nongnu.org; Tue, 28 Apr 2009 05:51:59 -0400 Received: from verein.lst.de ([213.95.11.210]:44633) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Lyjyo-0000Mr-Jb for qemu-devel@nongnu.org; Tue, 28 Apr 2009 05:51:58 -0400 Date: Tue, 28 Apr 2009 11:51:54 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] Re: [PATCH] virtio-blk: add SGI_IO passthru support Message-ID: <20090428095154.GB4137@lst.de> References: <20090427082606.GA32604@lst.de> <20090427082914.GA383@lst.de> <49F5C303.3060003@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49F5C303.3060003@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kvm@vger.kernel.org, Rusty Russell , qemu-devel@nongnu.org, Christian Borntraeger , Hannes Reinecke , Christoph Hellwig On Mon, Apr 27, 2009 at 09:36:51AM -0500, Anthony Liguori wrote: > So practically speaking, what can you do with this? It's interesting if your underlying device is a real scsi disk and you want virtio for efficiency but also allow to issue scsi commands on the underlying device, e.g. for finding out more information about the underlying setup using the sg_* tools or for certain manual multipathing setups, or for upgrading firmware or.. > 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. > On a related topic, should we switch /dev/vdX to be /dev/sdX? We can't and don't want for the current virtio-blk driver. Once we implement a virtio-scsi driver in the guest disk will show up as /dev/sdX.