summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorFam Zheng2018-06-01 11:26:46 +0200
committerStefan Hajnoczi2018-06-01 15:41:48 +0200
commit604dfaaa3270081da689991afe83d94d3e8231df (patch)
tree80b0bbffb86c3e9d220d9eb96b0c209236b49dd5 /include/scsi
parentiscsi: Create and use iscsi_co_wait_for_task (diff)
downloadqemu-604dfaaa3270081da689991afe83d94d3e8231df.tar.gz
qemu-604dfaaa3270081da689991afe83d94d3e8231df.tar.xz
qemu-604dfaaa3270081da689991afe83d94d3e8231df.zip
iscsi: Implement copy offloading
Issue EXTENDED COPY (LID1) command to implement the copy_range API. The parameter data construction code is modified from libiscsi's iscsi-dd.c. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20180601092648.24614-9-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/constants.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/constants.h b/include/scsi/constants.h
index a141dd71f8..083a8e887a 100644
--- a/include/scsi/constants.h
+++ b/include/scsi/constants.h
@@ -311,4 +311,8 @@
#define MMC_PROFILE_HDDVD_RW_DL 0x005A
#define MMC_PROFILE_INVALID 0xFFFF
+#define XCOPY_DESC_OFFSET 16
+#define IDENT_DESCR_TGT_DESCR_SIZE 32
+#define XCOPY_BLK2BLK_SEG_DESC_SIZE 28
+
#endif