diff options
author | Minwoo Im | 2021-01-24 03:54:48 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-09 11:00:57 +0100 |
commit | e36a261d4bf7057a8ffee336422210b58c661a21 (patch) | |
tree | b8e0a7456bb34c932ddcbad4801540e835d5304a /include/block | |
parent | hw/block/nvme: add CMIC enum value for Identify Controller (diff) | |
download | qemu-e36a261d4bf7057a8ffee336422210b58c661a21.tar.gz qemu-e36a261d4bf7057a8ffee336422210b58c661a21.tar.xz qemu-e36a261d4bf7057a8ffee336422210b58c661a21.zip |
hw/block/nvme: support for multi-controller in subsystem
We have nvme-subsys and nvme devices mapped together. To support
multi-controller scheme to this setup, controller identifier(id) has to
be managed. Earlier, cntlid(controller id) used to be always 0 because
we didn't have any subsystem scheme that controller id matters.
This patch introduced 'cntlid' attribute to the nvme controller
instance(NvmeCtrl) and make it allocated by the nvme-subsys device
mapped to the controller. If nvme-subsys is not given to the
controller, then it will always be 0 as it was.
Added 'ctrls' array in the nvme-subsys instance to manage attached
controllers to the subsystem with a limit(32). This patch didn't take
list for the controllers to make it seamless with nvme-ns device.
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Tested-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions