Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756018AbaGNPIi (ORCPT ); Mon, 14 Jul 2014 11:08:38 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:59074 "EHLO mail-oa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755944AbaGNPIb (ORCPT ); Mon, 14 Jul 2014 11:08:31 -0400 MIME-Version: 1.0 In-Reply-To: <1404241875-29164-1-git-send-email-agrover@redhat.com> References: <1404241875-29164-1-git-send-email-agrover@redhat.com> Date: Mon, 14 Jul 2014 17:08:30 +0200 Message-ID: Subject: Re: [RFC 0/2] target: userspace pass-through backend From: Stefan Hajnoczi To: Andy Grover Cc: target-devel , linux-scsi , Christoph Hellwig , "Nicholas A. Bellinger" , shli@kernel.org, linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 1, 2014 at 9:11 PM, Andy Grover wrote: > Shaohua Li wrote an initial implementation of this, late last year[1]. > Starting from that, I started working on some alternate implementation > choices, and ended up with something rather different. > > Please take a look and let me know what you think. Patch 1 is a > design and overview doc, and patch 2 is the actual code, along with > implementation rationale. > > Thanks -- Andy > > [1] http://thread.gmane.org/gmane.linux.scsi.target.devel/5044 > > Andy Grover (2): > target: Add documentation on the target userspace pass-through driver > target: Add a user-passthrough backstore > > Documentation/target/tcmu-design.txt | 210 +++++++ > drivers/target/Kconfig | 5 + > drivers/target/Makefile | 1 + > drivers/target/target_core_transport.c | 4 + > drivers/target/target_core_user.c | 1078 ++++++++++++++++++++++++++++++++ > drivers/target/target_core_user.h | 126 ++++ > 6 files changed, 1424 insertions(+) > create mode 100644 Documentation/target/tcmu-design.txt > create mode 100644 drivers/target/target_core_user.c > create mode 100644 drivers/target/target_core_user.h Hi Andy, Just wanted to let you know that a userspace backstore would potentially be useful for QEMU. QEMU supports a number of disk image formats (VMDK, VHDX, qcow2, and more). Make these available as SCSI LUNs on the host or to remote SCSI initiators is cool. We currently have a tool called qemu-nbd that exports disk images using the Network Block Device protocol. Your userspace backstore provides other options like iSCSI target or loopback access on the host. I took a quick look at the patch and imagine it's not hard to hook up to QEMU. Looks promising! Stefan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/