]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/block/nvme: support Identify NS Attached Controller List
authorMinwoo Im <minwoo.im.dev@gmail.com>
Wed, 10 Feb 2021 15:10:25 +0000 (00:10 +0900)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 9 Mar 2021 10:00:58 +0000 (11:00 +0100)
commit23fb7dfeca17c55e4329ca98459d33fc204c1f59
tree0ebc912b373dfa9b0ce616db00d7070142ebf1c2
parentf432fdfa1215bc3a00468b2e711176be279b0fd2
hw/block/nvme: support Identify NS Attached Controller List

Support Identify command for Namespace attached controller list.  This
command handler will traverse the controller instances in the given
subsystem to figure out whether the specified nsid is attached to the
controllers or not.

The 4096bytes Identify data will return with the first entry (16bits)
indicating the number of the controller id entries.  So, the data can
hold up to 2047 entries for the controller ids.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Tested-by: Klaus Jensen <k.jensen@samsung.com>
[k.jensen: rebased for dma refactor]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme.c
hw/block/trace-events
include/block/nvme.h