]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vhost/scsi: Enable T10 PI IOV -> SGL memory mapping
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 23 Feb 2014 02:22:31 +0000 (18:22 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 23 May 2014 00:16:34 +0000 (17:16 -0700)
commit52d3e2d5c28bf8931ded4ff81fcf7a8c20973804
tree72d011daf953191f311342d80cd51159f2678315
parenteedb9b16ee9465c3de513047bc9bea9be243efe7
vhost/scsi: Enable T10 PI IOV -> SGL memory mapping

This patch updates vhost_scsi_handle_vq() to check for the existance
of virtio_scsi_cmd_req_pi comparing vq->iov[0].iov_len in order to
calculate seperate data + protection SGLs from data_num.

Also update tcm_vhost_submission_work() to pass the pre-allocated
cmd->tvc_prot_sgl[] memory into target_submit_cmd_map_sgls(), and
update vhost_scsi_get_tag() parameters to accept scsi_tag, lun, and
task_attr.

Cc: Michael S. Tsirkin <mst@redhat.com>
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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c