]> Git Repo - linux.git/commit - drivers/vhost/scsi.c
vhost/scsi: Add ANY_LAYOUT iov -> sgl mapping prerequisites
authorNicholas Bellinger <[email protected]>
Wed, 28 Jan 2015 08:15:00 +0000 (00:15 -0800)
committerNicholas Bellinger <[email protected]>
Wed, 4 Feb 2015 18:55:36 +0000 (10:55 -0800)
commite8de56b5e76ab7ed2a4aa3476649fe3fa85de1d7
tree395e2c91c7cc0da292a6d484f005681d8f118127
parentb4078b5face3c1e79ef6e2dd254af04a470ed2bc
vhost/scsi: Add ANY_LAYOUT iov -> sgl mapping prerequisites

This patch adds ANY_LAYOUT prerequisites logic for accepting a set of
protection + data payloads via iov_iter.  Also includes helpers for
calcuating SGLs + invoking vhost_scsi_map_to_sgl() with a known number
of iovecs.

Required by ANY_LAYOUT processing when struct iovec may be offset into
the first outgoing virtio-scsi request header.

Cc: Michael S. Tsirkin <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/vhost/scsi.c
This page took 0.052237 seconds and 4 git commands to generate.