diff options
author | Klaus Jensen | 2020-07-06 08:12:50 +0200 |
---|---|---|
committer | Klaus Jensen | 2020-09-02 08:48:50 +0200 |
commit | 69ff06c49e9b0768bd68d887c2f29e8ff84dfaf3 (patch) | |
tree | 700c9a54b560ac344c2e30c778f4fb609dd73e68 /include/block | |
parent | hw/block/nvme: add support for the abort command (diff) | |
download | qemu-69ff06c49e9b0768bd68d887c2f29e8ff84dfaf3.tar.gz qemu-69ff06c49e9b0768bd68d887c2f29e8ff84dfaf3.tar.xz qemu-69ff06c49e9b0768bd68d887c2f29e8ff84dfaf3.zip |
hw/block/nvme: add temperature threshold feature
It might seem weird to implement this feature for an emulated device,
but it is mandatory to support and the feature is useful for testing
asynchronous event request support, which will be added in a later
patch.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Acked-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Message-Id: <20200706061303.246057-6-its@irrelevant.dk>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/nvme.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h index 58f8e48719..273640c2b1 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -861,7 +861,10 @@ enum NvmeIdCtrlOncs { typedef struct NvmeFeatureVal { uint32_t arbitration; uint32_t power_mgmt; - uint32_t temp_thresh; + struct { + uint16_t temp_thresh_hi; + uint16_t temp_thresh_low; + }; uint32_t err_rec; uint32_t volatile_wc; uint32_t num_queues; |