diff options
author | Gollu Appalanaidu | 2021-02-09 18:29:42 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-18 12:34:51 +0100 |
commit | 3e1da158c47f3a6f5d48794f99fe01096531ec2e (patch) | |
tree | 0ab9fff19856966b0e13789e8610780f782206ba /hw/block/nvme-dif.h | |
parent | hw/block/nvme: end-to-end data protection (diff) | |
download | qemu-3e1da158c47f3a6f5d48794f99fe01096531ec2e.tar.gz qemu-3e1da158c47f3a6f5d48794f99fe01096531ec2e.tar.xz qemu-3e1da158c47f3a6f5d48794f99fe01096531ec2e.zip |
hw/block/nvme: add verify command
See NVM Express 1.4, section 6.14 ("Verify Command").
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
[k.jensen: rebased, refactored for e2e]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/block/nvme-dif.h')
-rw-r--r-- | hw/block/nvme-dif.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/block/nvme-dif.h b/hw/block/nvme-dif.h index 793829782c..5a8e37c852 100644 --- a/hw/block/nvme-dif.h +++ b/hw/block/nvme-dif.h @@ -39,6 +39,8 @@ static const uint16_t t10_dif_crc_table[256] = { uint16_t nvme_check_prinfo(NvmeNamespace *ns, uint16_t ctrl, uint64_t slba, uint32_t reftag); +uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, size_t mlen, + uint64_t slba); void nvme_dif_pract_generate_dif(NvmeNamespace *ns, uint8_t *buf, size_t len, uint8_t *mbuf, size_t mlen, uint16_t apptag, uint32_t reftag); |