diff options
author | Klaus Jensen | 2020-02-23 17:38:22 +0100 |
---|---|---|
committer | Klaus Jensen | 2020-09-02 08:48:50 +0200 |
commit | e137d20e7dfff00d0662b3d2d256e9c92f7a7f4a (patch) | |
tree | a5e8ef285dc054be0f03d501a0a671dc817c2f31 /hw/block/nvme.h | |
parent | hw/block/nvme: refactor request bounds checking (diff) | |
download | qemu-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.h | 1 |
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 { |