summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorKlaus Jensen2020-12-18 12:54:45 +0100
committerKlaus Jensen2021-02-08 21:15:53 +0100
commit8e9e8b48216b134bb9165c1f023a60a4ec480b42 (patch)
tree729e4b189bbea7502199bb2efa0b27618d5d61fa /hw/block
parenthw/block/nvme: allow cmb and pmr to coexist (diff)
downloadqemu-8e9e8b48216b134bb9165c1f023a60a4ec480b42.tar.gz
qemu-8e9e8b48216b134bb9165c1f023a60a4ec480b42.tar.xz
qemu-8e9e8b48216b134bb9165c1f023a60a4ec480b42.zip
hw/block/nvme: rename PMR/CMB shift/mask fields
Use the correct field names. Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 4ce75642f1..0057a02402 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -4501,7 +4501,7 @@ static void nvme_set_smart_warning(Object *obj, Visitor *v, const char *name,
cap = NVME_SMART_SPARE | NVME_SMART_TEMPERATURE | NVME_SMART_RELIABILITY
| NVME_SMART_MEDIA_READ_ONLY | NVME_SMART_FAILED_VOLATILE_MEDIA;
- if (NVME_CAP_PMR(n->bar.cap)) {
+ if (NVME_CAP_PMRS(n->bar.cap)) {
cap |= NVME_SMART_PMR_UNRELIABLE;
}