diff options
author | Fam Zheng | 2018-06-01 11:26:46 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2018-06-01 15:41:48 +0200 |
commit | 604dfaaa3270081da689991afe83d94d3e8231df (patch) | |
tree | 80b0bbffb86c3e9d220d9eb96b0c209236b49dd5 /include/scsi | |
parent | iscsi: Create and use iscsi_co_wait_for_task (diff) | |
download | qemu-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.h | 4 |
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 |