summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme.h
diff options
context:
space:
mode:
authorKlaus Jensen2021-02-14 19:09:27 +0100
committerKlaus Jensen2021-03-18 12:34:51 +0100
commitf7dcd31885cbe801cac95536a279bbc7e55af4f6 (patch)
tree30b71323bd4bdbbcd7efe173c61a2f4c9f6722d6 /hw/block/nvme.h
parenthw/block/nvme: add verify command (diff)
downloadqemu-f7dcd31885cbe801cac95536a279bbc7e55af4f6.tar.gz
qemu-f7dcd31885cbe801cac95536a279bbc7e55af4f6.tar.xz
qemu-f7dcd31885cbe801cac95536a279bbc7e55af4f6.zip
hw/block/nvme: add non-mdts command size limit for verify
Verify is not subject to MDTS, so a single Verify command may result in excessive amounts of allocated memory. Impose a limit on the data size by adding support for TP 4040 ("Non-MDTS Command Size Limits"). Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/block/nvme.h')
-rw-r--r--hw/block/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.h b/hw/block/nvme.h
index 11c7fcc317..7b082212db 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -26,6 +26,7 @@ typedef struct NvmeParams {
uint8_t aerl;
uint32_t aer_max_queued;
uint8_t mdts;
+ uint8_t vsl;
bool use_intel_id;
uint8_t zasl;
bool legacy_cmb;