Re: [RFC 0/2] target: userspace pass-through backend

2014-07-14 Thread Stefan Hajnoczi
On Tue, Jul 1, 2014 at 9:11 PM, Andy Grover agro...@redhat.com 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-scsi in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC 0/2] target: userspace pass-through backend

2014-07-07 Thread Andy Grover
Hi, here's some additional beginning bits for the configuration and use 
of this code:


Changes to targetcli-fb and rtslib-fb:

https://github.com/agrover/targetcli-fb/tree/userback
https://github.com/agrover/rtslib-fb/tree/userback

An incredibly-crappy stand-in for the user process that will handle 
requests:


https://github.com/agrover/test-userback

I look forward to your feedback :)

Thanks -- Regards -- Andy

p.s. kernel changes are also available here:
https://github.com/agrover/linux/tree/userback
--
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RFC 0/2] target: userspace pass-through backend

2014-07-01 Thread Andy Grover
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

-- 
1.9.3

--
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html