From: Minwoo Im Date: Sun, 24 Jan 2021 02:54:47 +0000 (+0900) Subject: hw/block/nvme: add CMIC enum value for Identify Controller X-Git-Tag: v6.0.0-rc0~51^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66b7e9bed0aee4342aa7cb824b8c46a42cacf7e2;p=thirdparty%2Fqemu.git hw/block/nvme: add CMIC enum value for Identify Controller Added Controller Multi-path I/O and Namespace Sharing Capabilities (CMIC) field to support multi-controller in the following patches. This field is in Identify Controller data structure in [76]. Signed-off-by: Minwoo Im Tested-by: Klaus Jensen Reviewed-by: Klaus Jensen Reviewed-by: Keith Busch Signed-off-by: Klaus Jensen --- diff --git a/include/block/nvme.h b/include/block/nvme.h index 07cfc929368..f1d3a78658e 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -1034,6 +1034,10 @@ enum NvmeIdCtrlLpa { NVME_LPA_EXTENDED = 1 << 2, }; +enum NvmeIdCtrlCmic { + NVME_CMIC_MULTI_CTRL = 1 << 1, +}; + #define NVME_CTRL_SQES_MIN(sqes) ((sqes) & 0xf) #define NVME_CTRL_SQES_MAX(sqes) (((sqes) >> 4) & 0xf) #define NVME_CTRL_CQES_MIN(cqes) ((cqes) & 0xf)