summaryrefslogtreecommitdiff
path: root/drivers/vhost/tcm_vhost.h
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2013-02-05 04:31:57 (GMT)
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-13 19:29:53 (GMT)
commit67e18cf9ab21648a477e91e0d3cb6dbdb1330262 (patch)
tree2f39e32dfe7c2794082d61aea95dcdee38e5e4ae /drivers/vhost/tcm_vhost.h
parentadfa9570a56c3dbfc2a28baab77ff6f0b8f480d3 (diff)
downloadlinux-67e18cf9ab21648a477e91e0d3cb6dbdb1330262.tar.xz
tcm_vhost: Multi-target support
In order to take advantages of Paolo's multi-queue virito-scsi, we need multi-target support in tcm_vhost first. Otherwise all the requests go to one queue and other queues are idle. This patch makes: 1. All the targets under the wwpn is seen and can be used by guest. 2. No need to pass the tpgt number in struct vhost_scsi_target to tcm_vhost.ko. Only wwpn is needed. 3. We can always pass max_target = 255 to guest now, since we abort the request who's target id does not exist. Changes in v2: - Handle non-contiguous tpgt Changes in v3: - Simplfy lock in vhost_scsi_set_endpoint - Return -EEXIST when does not match Signed-off-by: Asias He <asias@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost/tcm_vhost.h')
-rw-r--r--drivers/vhost/tcm_vhost.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/vhost/tcm_vhost.h b/drivers/vhost/tcm_vhost.h
index 47ee80b..519a550 100644
--- a/drivers/vhost/tcm_vhost.h
+++ b/drivers/vhost/tcm_vhost.h
@@ -93,9 +93,11 @@ struct tcm_vhost_tport {
*
* ABI Rev 0: July 2012 version starting point for v3.6-rc merge candidate +
* RFC-v2 vhost-scsi userspace. Add GET_ABI_VERSION ioctl usage
+ * ABI Rev 1: January 2013. Ignore vhost_tpgt filed in struct vhost_scsi_target.
+ * All the targets under vhost_wwpn can be seen and used by guset.
*/
-#define VHOST_SCSI_ABI_VERSION 0
+#define VHOST_SCSI_ABI_VERSION 1
struct vhost_scsi_target {
int abi_version;