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.c | |
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.c')
-rw-r--r-- | hw/block/nvme-dif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/nvme-dif.c b/hw/block/nvme-dif.c index 1b628dead7..2038d724bd 100644 --- a/hw/block/nvme-dif.c +++ b/hw/block/nvme-dif.c @@ -162,8 +162,8 @@ uint16_t nvme_dif_check(NvmeNamespace *ns, uint8_t *buf, size_t len, return NVME_SUCCESS; } -static uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, - size_t mlen, uint64_t slba) +uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, size_t mlen, + uint64_t slba) { BlockBackend *blk = ns->blkconf.blk; BlockDriverState *bs = blk_bs(blk); |