summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorzhenwei pi2021-01-15 04:27:00 +0100
committerKlaus Jensen2021-02-08 21:15:53 +0100
commitc6d1b5c13bf937d3314f4bad596ced52f32106c5 (patch)
treece6727b783180c86be0f9aa49b28c75a4f95bd2c /include/block
parenthw/block/nvme: fix zone write finalize (diff)
downloadqemu-c6d1b5c13bf937d3314f4bad596ced52f32106c5.tar.gz
qemu-c6d1b5c13bf937d3314f4bad596ced52f32106c5.tar.xz
qemu-c6d1b5c13bf937d3314f4bad596ced52f32106c5.zip
nvme: introduce bit 5 for critical warning
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>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h
index 45b2678db1..41614c5e12 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -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 {