diff options
author | Gollu Appalanaidu <anaidu.gollu@samsung.com> | 2021-06-14 21:59:26 +0530 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2021-06-29 07:16:25 +0200 |
commit | 5f4eb94dbb2251b290a1e8b89dc7732865e8a43b (patch) | |
tree | 0d4f9a48000b3f3bbe474ca67397a0692125adf1 /include/block | |
parent | e76fb260ca8fc2420a4ce792324af0544628b331 (diff) | |
download | qemu-5f4eb94dbb2251b290a1e8b89dc7732865e8a43b.zip qemu-5f4eb94dbb2251b290a1e8b89dc7732865e8a43b.tar.gz qemu-5f4eb94dbb2251b290a1e8b89dc7732865e8a43b.tar.bz2 |
hw/nvme: fix endianess conversion and add controller list
Add the controller identifiers list CNS 0x13, available list of ctrls
in NVM Subsystem that may or may not be attached to namespaces.
In Identify Ctrl List of the CNS 0x12 and 0x13 no endian conversion
for the nsid field.
These two CNS values shows affect when there exists a Subsystem.
Added condition if there is no Subsystem return invalid field in
command.
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h index 0fabe28..527105f 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -988,6 +988,7 @@ enum NvmeIdCns { NVME_ID_CNS_NS_PRESENT_LIST = 0x10, NVME_ID_CNS_NS_PRESENT = 0x11, NVME_ID_CNS_NS_ATTACHED_CTRL_LIST = 0x12, + NVME_ID_CNS_CTRL_LIST = 0x13, NVME_ID_CNS_CS_NS_PRESENT_LIST = 0x1a, NVME_ID_CNS_CS_NS_PRESENT = 0x1b, NVME_ID_CNS_IO_COMMAND_SET = 0x1c, |