summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinwoo Im2021-01-24 03:54:49 +0100
committerKlaus Jensen2021-03-09 11:00:57 +0100
commitadc36b8d21204c00643016d8766a5214e3d54b5b (patch)
tree58a06318500d1aa4892be1706c8a059fe8cb1d26
parenthw/block/nvme: support for multi-controller in subsystem (diff)
downloadqemu-adc36b8d21204c00643016d8766a5214e3d54b5b.tar.gz
qemu-adc36b8d21204c00643016d8766a5214e3d54b5b.tar.xz
qemu-adc36b8d21204c00643016d8766a5214e3d54b5b.zip
hw/block/nvme: add NMIC enum value for Identify Namespace
Added Namespace Multi-path I/O and Namespace Sharing Capabilities (NMIC) field to support shared namespace from controller(s). This field is in Identify Namespace data structure in [30]. 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>
-rw-r--r--include/block/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h
index f1d3a78658..3db2b9b4cb 100644
--- a/include/block/nvme.h
+++ b/include/block/nvme.h
@@ -1203,6 +1203,10 @@ enum NvmeNsIdentifierType {
NVME_NIDT_CSI = 0x04,
};
+enum NvmeIdNsNmic {
+ NVME_NMIC_NS_SHARED = 1 << 0,
+};
+
enum NvmeCsi {
NVME_CSI_NVM = 0x00,
NVME_CSI_ZONED = 0x02,