From: Christian Borntraeger Subject: Re: [PATCH] virtio_blk: SG_IO passthru support Date: Mon, 27 Apr 2009 12:11:42 +0200 Message-ID: <200904271211.42395.borntraeger@de.ibm.com> References: <20090427082121.GA32488@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Rusty Russell , Hannes Reinecke , kvm@vger.kernel.org To: Christoph Hellwig Return-path: Received: from mtagate3.uk.ibm.com ([195.212.29.136]:51715 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbZD0KLp (ORCPT ); Mon, 27 Apr 2009 06:11:45 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate3.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n3RABiCp503836 for ; Mon, 27 Apr 2009 10:11:44 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3RABihw3313866 for ; Mon, 27 Apr 2009 11:11:44 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3RABhKZ028145 for ; Mon, 27 Apr 2009 11:11:43 +0100 In-Reply-To: <20090427082121.GA32488@lst.de> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Monday 27 April 2009 10:21:21 schrieben Sie: > From: Hannes Reinecke > > Add support for SG_IO passthru to virtio_blk. We add the scsi command > block after the normal outhdr, and the scsi inhdr with full status > information aswell as the sense buffer before the regular inhdr. > > [hch: forward ported, added the VIRTIO_BLK_F_SCSI flags, some comments > and tested the whole beast] I like the VIRTIO_BLK_F_SCSI flag - it avoids some problems we had with an earlier version. (I believe we found a solution, but this explicit check looks much more reliable) I gave this patch a short test with the kuli loader (s390 userspace). You can consider the "VIRTIO_BLK_F_SCSI not available" case Tested-by: Christian Borntraeger Christian