diff options
author | Nicholas Bellinger <[email protected]> | 2014-02-22 18:34:43 -0800 |
---|---|---|
committer | Nicholas Bellinger <[email protected]> | 2014-06-02 12:42:07 -0700 |
commit | e31885dd901e80d5bd528c1cbedde07ebbf051b2 (patch) | |
tree | 607777156b57654c5ec44a3a33667fb3938e852a /net/unix/af_unix.c | |
parent | b1935f687bb93b207ef690f7debc0e9921fc484f (diff) |
vhost/scsi: Add T10 PI IOV -> SGL memory mapping logic
This patch adds vhost_scsi_map_iov_to_prot() to perform the mapping of
T10 data integrity memory between virtio iov + struct scatterlist using
get_user_pages_fast() following existing code.
As with vhost_scsi_map_iov_to_sgl(), this does sanity checks against the
total prot_sgl_count vs. pre-allocated SGLs, and loops across protection
iovs using vhost_scsi_map_to_sgl() to perform the actual memory mapping.
Also update tcm_vhost_release_cmd() to release associated tvc_prot_sgl[]
struct page.
Cc: Michael S. Tsirkin <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Martin K. Petersen <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions