virtio-scsi.h: Add virtio_scsi_cmd_req_pi + VIRTIO_SCSI_F_T10_PI bits
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 16 Mar 2014 21:51:35 +0000 (14:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 2 Jun 2014 19:41:33 +0000 (12:41 -0700)
commit1b49dcf3d7c765ad18ca7167a0e441824eb1f7af
tree5bb2c91afddab39abe6a29e507acde2f6b67ee18
parent5f80ff8eccba50832dcc640ac89add4c7fced963
virtio-scsi.h: Add virtio_scsi_cmd_req_pi + VIRTIO_SCSI_F_T10_PI bits

This patch adds a virtio_scsi_cmd_req_pi header as recommened by
Paolo that contains pi_bytesout + pi_bytesin elements used for
signaling when protection information buffers (in bytes) are
expected to preceed the data payload buffers.

Also add new VIRTIO_SCSI_F_T10_PI feature bit to be used to signal
host support.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@dev.mellanox.co.il>
Cc: H. Peter Anvin <hpa@zytor.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
include/linux/virtio_scsi.h