From: Christian Borntraeger Subject: Re: [Qemu-devel] Re: [PATCH] virtio-blk: add SGI_IO passthru support Date: Tue, 28 Apr 2009 21:09:52 +0200 Message-ID: <200904282109.52905.borntraeger@de.ibm.com> References: <20090427082606.GA32604@lst.de> <49F5C303.3060003@codemonkey.ws> <20090428095154.GB4137@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Rusty Russell , qemu-devel@nongnu.org, kvm@vger.kernel.org, Hannes Reinecke To: Christoph Hellwig Return-path: Received: from mtagate3.de.ibm.com ([195.212.29.152]:42926 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbZD1TJ6 (ORCPT ); Tue, 28 Apr 2009 15:09:58 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.14.3/8.13.8) with ESMTP id n3SJ9tD5206542 for ; Tue, 28 Apr 2009 19:09:55 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3SJ9tTm4063394 for ; Tue, 28 Apr 2009 21:09:55 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3SJ9s4E027961 for ; Tue, 28 Apr 2009 21:09:55 +0200 In-Reply-To: <20090428095154.GB4137@lst.de> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Tuesday 28 April 2009 11:51:54 schrieb Christoph Hellwig: > 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 Yes, virtio-scsi is also something we were thinking of. The last time we discussed this idea of SCSI passthrough internally, we stumbled over error recovery. Who is responsible for the error recovery? The host, the guest, or both? Are there problems, which will trigger error recovery in the guest and host midlayer at the same time? To be honest, my scsi knowledge is very limited, so I dont know if that is a real problem. Christian