diff options
author | Naveen Nagar <naveen.n1@samsung.com> | 2021-10-06 08:53:30 +0200 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2022-03-03 09:28:49 +0100 |
commit | 763c05dfb08c5fff86275788de7f11e899167167 (patch) | |
tree | 67b2471decddddc6cc35e78383a61a8d7f2102ff /include | |
parent | a6de6ed5092c1d6d33450e53bb8f4b711c0320ea (diff) |
hw/nvme: add support for the lbafee hbs feature
Add support for up to 64 LBA formats through the LBAFEE field of the
Host Behavior Support feature.
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Naveen Nagar <naveen.n1@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/nvme.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h index e527c728f9..37afc9be9b 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -1111,6 +1111,10 @@ enum NvmeIdCtrlOaes { NVME_OAES_NS_ATTR = 1 << 8, }; +enum NvmeIdCtrlCtratt { + NVME_CTRATT_ELBAS = 1 << 15, +}; + enum NvmeIdCtrlOacs { NVME_OACS_SECURITY = 1 << 0, NVME_OACS_FORMAT = 1 << 1, @@ -1312,8 +1316,7 @@ typedef struct QEMU_PACKED NvmeIdNs { uint8_t rsvd81[23]; uint8_t nguid[16]; uint64_t eui64; - NvmeLBAF lbaf[16]; - uint8_t rsvd192[192]; + NvmeLBAF lbaf[64]; uint8_t vs[3712]; } NvmeIdNs; |