diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2023-02-20 12:59:24 +0100 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2023-03-06 15:28:02 +0100 |
commit | 771dbc3ac484af35cddf7e4971e66a1fd1a07156 (patch) | |
tree | 7536299884ee1bb58afcb70576f07fb0ff882265 /hw/nvme/nvme.h | |
parent | 534a93d3a0bbde4248889ece1e0874ab98a96508 (diff) | |
download | qemu-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.h | 4 |
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; |