From: Nicholas Bellinger Date: Sun, 23 Feb 2014 02:23:33 +0000 (-0800) Subject: virtio-scsi: Enable DIF/DIX modes in SCSI host LLD X-Git-Tag: omap-for-v3.16/fixes-against-rc1~26^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6dc783a38ec0f2a5a91edda3f76195dffb17a16;p=pandora-kernel.git virtio-scsi: Enable DIF/DIX modes in SCSI host LLD This patch updates virtscsi_probe() to setup necessary Scsi_Host level protection resources. (currently hardcoded to 1) It changes virtscsi_add_cmd() to attach outgoing / incoming protection SGLs preceeding the data payload, and is using the new virtio_scsi_cmd_req_pi->pi_bytes[out,in] field to signal to signal to vhost/scsi bytes to expect for protection data. (Add missing #include for blk_integrity - sfr + nab) Acked-by: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Martin K. Petersen Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Sagi Grimberg Cc: H. Peter Anvin Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed