From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnOGx-0003J4-Cg for qemu-devel@nongnu.org; Thu, 22 May 2014 04:22:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnOGr-0003Ju-4Y for qemu-devel@nongnu.org; Thu, 22 May 2014 04:22:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnOGq-0003Jh-T4 for qemu-devel@nongnu.org; Thu, 22 May 2014 04:22:37 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4M8MZiC010017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 22 May 2014 04:22:35 -0400 From: Fam Zheng Date: Thu, 22 May 2014 16:22:41 +0800 Message-Id: <1400746963-3717-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] dataplane: Enable "scsi=on" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Stefan Hajnoczi 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(-) -- 1.9.2