mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
709cc8fc68
commit
8e9e8b4821
2 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue