mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user