hw/nvme: fix endianess conversion and add controller list
commit5f4eb94dbb2251b290a1e8b89dc7732865e8a43b
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Mon, 14 Jun 2021 16:29:26 +0000 (14 21:59 +0530)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (29 07:16 +0200)
tree0d4f9a48000b3f3bbe474ca67397a0692125adf1
parente76fb260ca8fc2420a4ce792324af0544628b331
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>
hw/nvme/ctrl.c
hw/nvme/trace-events
include/block/nvme.h