summary refs log tree commit diff stats
path: root/hw/core/split-irq.c
diff options
context:
space:
mode:
authorMinwoo Im <minwoo.im.dev@gmail.com>2021-02-06 02:15:10 +0900
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:58 +0100
commit94d8d6d1678156dfc7244beef75c05db52965d60 (patch)
treec6a2c5ecd1edb56992fc664a4c36366385e03720 /hw/core/split-irq.c
parent92cad003c131c1866580beb4c00e19551652be8d (diff)
downloadfocaccia-qemu-94d8d6d1678156dfc7244beef75c05db52965d60.tar.gz
focaccia-qemu-94d8d6d1678156dfc7244beef75c05db52965d60.zip
hw/block/nvme: support allocated namespace type
From NVMe spec 1.4b "6.1.5. NSID and Namespace Relationships" defines
valid namespace types:

	- Unallocated: Not exists in the NVMe subsystem
	- Allocated: Exists in the NVMe subsystem
	- Inactive: Not attached to the controller
	- Active: Attached to the controller

This patch added support for allocated, but not attached namespace type:

	!nvme_ns(n, nsid) && nvme_subsys_ns(n->subsys, nsid)

nvme_ns() returns attached namespace instance of the given controller
and nvme_subsys_ns() returns allocated namespace instance in the
subsystem.

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>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/core/split-irq.c')
0 files changed, 0 insertions, 0 deletions