aboutsummaryrefslogtreecommitdiff
path: root/hw/nvme/nvme.h
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2023-02-20 12:59:24 +0100
committerKlaus Jensen <k.jensen@samsung.com>2023-03-06 15:28:02 +0100
commit771dbc3ac484af35cddf7e4971e66a1fd1a07156 (patch)
tree7536299884ee1bb58afcb70576f07fb0ff882265 /hw/nvme/nvme.h
parent534a93d3a0bbde4248889ece1e0874ab98a96508 (diff)
downloadqemu-771dbc3ac484af35cddf7e4971e66a1fd1a07156.zip
qemu-771dbc3ac484af35cddf7e4971e66a1fd1a07156.tar.gz
qemu-771dbc3ac484af35cddf7e4971e66a1fd1a07156.tar.bz2
hw/nvme: add basic endurance group support
Add the mandatory Endurance Group identify data structures and log pages. For now, all namespaces in a subsystem belongs to a single Endurance Group. Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/nvme/nvme.h')
-rw-r--r--hw/nvme/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/nvme/nvme.h b/hw/nvme/nvme.h
index 5d22107..a88e0de 100644
--- a/hw/nvme/nvme.h
+++ b/hw/nvme/nvme.h
@@ -45,6 +45,10 @@ typedef struct NvmeBus {
OBJECT_CHECK(NvmeSubsystem, (obj), TYPE_NVME_SUBSYS)
#define SUBSYS_SLOT_RSVD (void *)0xFFFF
+typedef struct NvmeEnduranceGroup {
+ uint8_t event_conf;
+} NvmeEnduranceGroup;
+
typedef struct NvmeSubsystem {
DeviceState parent_obj;
NvmeBus bus;