summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme.h
diff options
context:
space:
mode:
authorKlaus Jensen2020-02-23 17:38:22 +0100
committerKlaus Jensen2020-09-02 08:48:50 +0200
commite137d20e7dfff00d0662b3d2d256e9c92f7a7f4a (patch)
treea5e8ef285dc054be0f03d501a0a671dc817c2f31 /hw/block/nvme.h
parenthw/block/nvme: refactor request bounds checking (diff)
downloadqemu-e137d20e7dfff00d0662b3d2d256e9c92f7a7f4a.tar.gz
qemu-e137d20e7dfff00d0662b3d2d256e9c92f7a7f4a.tar.xz
qemu-e137d20e7dfff00d0662b3d2d256e9c92f7a7f4a.zip
hw/block/nvme: add check for mdts
Add 'mdts' device parameter to control the Maximum Data Transfer Size of the controller and check that it is respected. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
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 5519b5cc76..137cd8c2bf 100644
--- a/hw/block/nvme.h
+++ b/hw/block/nvme.h
@@ -11,6 +11,7 @@ typedef struct NvmeParams {
uint32_t cmb_size_mb;
uint8_t aerl;
uint32_t aer_max_queued;
+ uint8_t mdts;
} NvmeParams;
typedef struct NvmeAsyncEvent {