xen-scsifront: Add Xen PV SCSI frontend driver
authorJuergen Gross <jgross@suse.com>
Thu, 28 Aug 2014 04:44:11 +0000 (06:44 +0200)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 23 Sep 2014 13:36:19 +0000 (13:36 +0000)
commit8beb8d4c91d652617dc992de565ec9904361c33e
treed224ac744e751bea5b7454e5be20a3c8cf8c91a5
parente124c9a2c3c4c51555fe6f0bc214fe1b5cce3666
xen-scsifront: Add Xen PV SCSI frontend driver

Introduces the Xen pvSCSI frontend. With pvSCSI it is possible for a
Xen domU to issue SCSI commands to a SCSI LUN assigned to that
domU. The SCSI commands are passed to the pvSCSI backend in a driver
domain (usually Dom0) which is owner of the physical device. This
allows e.g. to use SCSI tape drives in a Xen domU.

The code is taken from the pvSCSI implementation in Xen done by
Fujitsu based on Linux kernel 2.6.18.

Changes from the original version are:
- port to upstream kernel
- put all code in just one source file
- move module to appropriate location in kernel tree
- adapt to Linux style guide
- some minor code simplifications
- replace constants with defines
- remove not used defines
- add support for larger SG lists by putting them in a granted page

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/scsi/Kconfig
drivers/scsi/Makefile
drivers/scsi/xen-scsifront.c [new file with mode: 0644]