From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnShG-0001Xc-6M for qemu-devel@nongnu.org; Thu, 22 May 2014 09:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnSh9-0003hE-Hy for qemu-devel@nongnu.org; Thu, 22 May 2014 09:06:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnSh9-0003h1-9Y for qemu-devel@nongnu.org; Thu, 22 May 2014 09:06:03 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4MD622E027771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 22 May 2014 09:06:02 -0400 Date: Thu, 22 May 2014 15:05:59 +0200 From: Stefan Hajnoczi Message-ID: <20140522130559.GA18867@stefanha-thinkpad.redhat.com> References: <1400746963-3717-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400746963-3717-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 0/2] dataplane: Enable "scsi=on" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Paolo Bonzini , qemu-devel@nongnu.org On Thu, May 22, 2014 at 04:22:41PM +0800, Fam Zheng wrote: > This makes the SG_IO code of non-dataplane available to dataplane, so that > dataplane can use to allow scsi=on. > > v3: Change parameter to VirtIOBlock pointer. Undo the swap in code movement. > (Paolo) > > v2: > [1/2] Fix scsi=off case and drop VirtIOBlockReq.scsi. > [2/2] Pass conf to virtio_blk_handle_scsi_req. > > Fam > > > Fam Zheng (2): > virtio-blk: Factor out virtio_blk_handle_scsi_req from > virtio_blk_handle_scsi > dataplane: Support VIRTIO_BLK_T_SCSI_CMD > > hw/block/dataplane/virtio-blk.c | 18 +++++----- > hw/block/virtio-blk.c | 75 ++++++++++++++++++++++------------------- > include/hw/virtio/virtio-blk.h | 3 ++ > 3 files changed, 54 insertions(+), 42 deletions(-) Reviewed-by: Stefan Hajnoczi