]> git.proxmox.com Git - mirror_qemu.git/commitdiff
nvme: introduce bit 5 for critical warning
authorzhenwei pi <pizhenwei@bytedance.com>
Fri, 15 Jan 2021 03:27:00 +0000 (11:27 +0800)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 8 Feb 2021 20:15:53 +0000 (21:15 +0100)
According to NVM Express v1.4, Section 5.14.1.2 ("SMART / Health
Information"), introduce bit 5 for "Persistent Memory Region has become
read-only or unreliable".

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
[k.jensen: minor brush ups in commit message]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
include/block/nvme.h

index 45b2678db1f0c22fba71802d9617f4a2db007377..41614c5e12afed574e39446026a83e8473f59264 100644 (file)
@@ -789,6 +789,7 @@ enum NvmeSmartWarn {
     NVME_SMART_RELIABILITY            = 1 << 2,
     NVME_SMART_MEDIA_READ_ONLY        = 1 << 3,
     NVME_SMART_FAILED_VOLATILE_MEDIA  = 1 << 4,
+    NVME_SMART_PMR_UNRELIABLE         = 1 << 5,
 };
 
 typedef struct NvmeEffectsLog {