From patchwork Sun Jan 24 02:54:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minwoo Im X-Patchwork-Id: 12042021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 977B1C433DB for ; Sun, 24 Jan 2021 03:04:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 21F3722CF6 for ; Sun, 24 Jan 2021 03:04:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21F3722CF6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3VhB-0001Ig-5m for qemu-devel@archiver.kernel.org; Sat, 23 Jan 2021 22:04:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3VYU-0000Mx-J0; Sat, 23 Jan 2021 21:55:10 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:41634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3VYS-0003i3-Vr; Sat, 23 Jan 2021 21:55:10 -0500 Received: by mail-pl1-x629.google.com with SMTP id h15so3045231pli.8; Sat, 23 Jan 2021 18:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gq79wtNdkMEoBleQb6W3xZAzvk0xvFQyqyLanl+JX3c=; b=TFuvV/awoo+rp9WaAkpJPvN3hx4SevBVdVAfyrSASz/8INtpKjYJEmRg8hbx5kgKJB hmXKQfr3npmafMOzwobxzb08J5GkfXtSlObcrnXS9s4m0VMP1rKnx6JV+UG/e9vF4Xcp gTQcwtC7Eyy7iZnLdUKc/h4OaksXjhP6NvVN+B5c0Vt8Am4q5aw05/+lhm5kFAtnuXwY Dx5kipQ0tYabxlBu4nzCAa0jCdzc2ucO+vufKPDYBu4UyGR1wwGl6IdGH1zYY7+7GbpM uSSWWS/2C5h/HwpxV/kiDo0dIdvgaVFRpwNgKCHj6GggzGMV8a8cSEPOEgULEtFTxoP1 Dy/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gq79wtNdkMEoBleQb6W3xZAzvk0xvFQyqyLanl+JX3c=; b=GnD2FgNMDi4g61S+UIW5pyfaqLCkNQhqk9VbbqxvJntTDgMajW4f2n9guR5ufFy4Nl FnKdrbxq0bExoClYc6Wgws0pJRKupwYKigoH0lyF3L3phY6u4g40iJtbRH9sobFtsVPi RKbcqH1q3BtdFOW6uq7FrXlbPmqyadBaBsXdKG0unvBV0OCO0WC3dp+Y6zJ/8qaGqhbt QIDIzzB35OeMlWXmY7Oyn1SxeeP4fN6M5vTLmGYBk0n/joUt4xiBlF21s5nWlA7ZBCaC 3dc7GVPbaqpWxx7uu7Y5aVjPXLA+ExupFG1Lhp88h/Sd2XM44LJQEGF5t2glW78fs2wI vCiA== X-Gm-Message-State: AOAM532DQGUR4Q44vJFp4I28kkTceFlp+MajlFab1vq2ZIYLU93zTz6b +fr9fVSZ3BqzY4kwD4QenI4Pb0dAt8IShA== X-Google-Smtp-Source: ABdhPJz7GyjSe7TDLKmfROwceETBnrjtlbO40EJez2KQgWtKsQyVqxhsBepuxFhUg0r8S3jUIjFKgw== X-Received: by 2002:a17:903:181:b029:df:c7e5:8e39 with SMTP id z1-20020a1709030181b02900dfc7e58e39mr12632676plg.25.1611456907256; Sat, 23 Jan 2021 18:55:07 -0800 (PST) Received: from localhost.localdomain ([211.108.35.36]) by smtp.gmail.com with ESMTPSA id 77sm314842pfx.130.2021.01.23.18.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jan 2021 18:55:06 -0800 (PST) From: Minwoo Im To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [PATCH V6 3/6] hw/block/nvme: add CMIC enum value for Identify Controller Date: Sun, 24 Jan 2021 11:54:47 +0900 Message-Id: <20210124025450.11071-4-minwoo.im.dev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210124025450.11071-1-minwoo.im.dev@gmail.com> References: <20210124025450.11071-1-minwoo.im.dev@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=minwoo.im.dev@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Keith Busch , Klaus Jensen , Minwoo Im , Kevin Wolf , Max Reitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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 --- include/block/nvme.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/block/nvme.h b/include/block/nvme.h index e4b918064df9..d6415a869c1c 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)