summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKlaus Jensen2020-07-06 08:12:51 +0200
committerKlaus Jensen2020-09-02 08:48:50 +0200
commit42a42e4610ab9e4ca0bcc976f4b19f9f612a085e (patch)
tree5871168633ccf2b16545769b976be41d6ba3abda /include/block
parenthw/block/nvme: add temperature threshold feature (diff)
downloadqemu-42a42e4610ab9e4ca0bcc976f4b19f9f612a085e.tar.gz
qemu-42a42e4610ab9e4ca0bcc976f4b19f9f612a085e.tar.xz
qemu-42a42e4610ab9e4ca0bcc976f4b19f9f612a085e.zip
hw/block/nvme: mark fw slot 1 as read-only
Mark firmware slot 1 as read-only and only support that slot. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20200706061303.246057-7-its@irrelevant.dk>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h
index 273640c2b1..f3fdb5bf11 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -843,6 +843,10 @@ enum NvmeIdCtrlOncs {
NVME_ONCS_TIMESTAMP = 1 << 6,
};
+enum NvmeIdCtrlFrmw {
+ NVME_FRMW_SLOT1_RO = 1 << 0,
+};
+
#define NVME_CTRL_SQES_MIN(sqes) ((sqes) & 0xf)
#define NVME_CTRL_SQES_MAX(sqes) (((sqes) >> 4) & 0xf)
#define NVME_CTRL_CQES_MIN(cqes) ((cqes) & 0xf)