diff options
author | Minwoo Im | 2021-02-05 18:15:10 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-09 11:00:58 +0100 |
commit | 94d8d6d1678156dfc7244beef75c05db52965d60 (patch) | |
tree | c6a2c5ecd1edb56992fc664a4c36366385e03720 /hw/usb/meson.build | |
parent | hw/block/nvme: fix allocated namespace list to 256 (diff) | |
download | qemu-94d8d6d1678156dfc7244beef75c05db52965d60.tar.gz qemu-94d8d6d1678156dfc7244beef75c05db52965d60.tar.xz 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/usb/meson.build')
0 files changed, 0 insertions, 0 deletions