summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme-ns.h
diff options
context:
space:
mode:
authorKlaus Jensen2020-11-06 10:46:01 +0100
committerKlaus Jensen2021-03-09 11:00:57 +0100
commite4e430b3d6baa1c908ba71ca37aad87edac98804 (patch)
tree726602000b64b5c5511a45955e71b9892e7d78fe /hw/block/nvme-ns.h
parentnvme: updated shared header for copy command (diff)
downloadqemu-e4e430b3d6baa1c908ba71ca37aad87edac98804.tar.gz
qemu-e4e430b3d6baa1c908ba71ca37aad87edac98804.tar.xz
qemu-e4e430b3d6baa1c908ba71ca37aad87edac98804.zip
hw/block/nvme: add simple copy command
Add support for TP 4065a ("Simple Copy Command"), v2020.05.04 ("Ratified"). The implementation uses a bounce buffer to first read in the source logical blocks, then issue a write of that bounce buffer. The default maximum number of source logical blocks is 128, translating to 512 KiB for 4k logical blocks which aligns with the default value of MDTS. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/block/nvme-ns.h')
-rw-r--r--hw/block/nvme-ns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/block/nvme-ns.h b/hw/block/nvme-ns.h
index 929e788619..7af6884862 100644
--- a/hw/block/nvme-ns.h
+++ b/hw/block/nvme-ns.h
@@ -29,6 +29,10 @@ typedef struct NvmeNamespaceParams {
uint32_t nsid;
QemuUUID uuid;
+ uint16_t mssrl;
+ uint32_t mcl;
+ uint8_t msrc;
+
bool zoned;
bool cross_zone_read;
uint64_t zone_size_bs;