hw/nvme: rework csi handling
authorKlaus Jensen <k.jensen@samsung.com>
Mon, 16 Dec 2024 12:53:07 +0000 (13:53 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Wed, 26 Feb 2025 11:40:32 +0000 (12:40 +0100)
commit6ccca4b6bb9f994cc04e71004e1767a3476d2b23
treebd87f958478a47c7f3cca59e91ff9d10ed17aa7a
parentd96a32de3fd0880a9340590fd279288e42e983c1
hw/nvme: rework csi handling

The controller incorrectly allows a zoned namespace to be attached even
if CS.CSS is configured to only support the NVM command set for I/O
queues.

Rework handling of namespace command sets in general by attaching
supported namespaces when the controller is started instead of, like
now, statically when realized.

Reviewed-by: Jesper Wendel Devantier <foss@defmacro.it>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c
hw/nvme/ns.c
hw/nvme/nvme.h
include/block/nvme.h