From patchwork Sun Jan 17 14:53:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minwoo Im X-Patchwork-Id: 12025457 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 2BBFCC433E0 for ; Sun, 17 Jan 2021 15:07:30 +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 CD96B21D81 for ; Sun, 17 Jan 2021 15:07:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD96B21D81 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]:53644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l19eK-0000TB-TH for qemu-devel@archiver.kernel.org; Sun, 17 Jan 2021 10:07:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l19RZ-0004dq-JE; Sun, 17 Jan 2021 09:54:17 -0500 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:35939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l19RY-0004A9-1N; Sun, 17 Jan 2021 09:54:17 -0500 Received: by mail-pg1-x52c.google.com with SMTP id c132so9331093pga.3; Sun, 17 Jan 2021 06:54:14 -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=ZuENl38Uj1XXvlGTRP6SwNgsA5uXW6rACpRQwgn9cKc=; b=LPHq9b3ntPwr2s3QXirNh98Yn+z9E0brZR+0LHdTZUIKeLDJiS8zZ7q/xYATev+TaZ Ej0rF7DGYt1YTYmHppg0enXgc7ymvOUz/MKo7JF+BhK8SEweEYW3R5PZotIJVjLXU1Iv mP+9s3qc5BmLBLZUM2pg6USpf9L7FVqRy+Uce5MMX1SuVrq7N7zj1DZXAGO5B2m1JWzx 7UX3vozSuWpi63J6Ot7G+m14HAPNH+D4VqceK+tbpw8N2Lip6OFJyUMbrsSX1q0Gxh3d IKzLhbx1hlFikydBizyNGsl57azdtunDHZAz+6yUTDSNLnB0npIEKX7nqE16qhmoj6pA 39Ug== 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=ZuENl38Uj1XXvlGTRP6SwNgsA5uXW6rACpRQwgn9cKc=; b=BlVWWEHWsBh897C82e9QRAXdo9lFifxPS8O+nryCEygc0/Vw+YwcXCPZGjQLgvBBv6 YdBu3hpVxDPMGRW1c3zFyDVPF47B0pCJytkw5Zmv1xwl3DjBsMQ/xdAG7IB7PX4jpP9o Rhfiz9KNYlIfUb1Zy53RS2q68IuLnqNBsMLbZmDPNBzSOQlP439tIfmBXn8I/buuB/DA +I4ynKtVsneq+ZiWQ4RqdkpZEHifMDMqXWtvVytDI1f9eHiz0be+Lcs1/DyJ4TY2Qega SATFYyQFBeXv/+kqn8jivAPzy9cK3yW+ANicyTd3r9uRi5JO0uGB7U4hGRhqQTJ0tdDz DdSA== X-Gm-Message-State: AOAM533GgTTcT7dMKjcSQtoZGyxu7FjlzN9EH8Q0RSTD94BAoVBxB18G w5Tioki0mpD9ot9BEsJsMPWzj6OIjZjJbg== X-Google-Smtp-Source: ABdhPJyqrWp7jxMi9P0v8scUxfQKszMCLgdr/fIo6jRM4HbV9qKT40k8f56SHZ5aq+YKmlh/PAzZ2A== X-Received: by 2002:a63:4346:: with SMTP id q67mr21852626pga.223.1610895253999; Sun, 17 Jan 2021 06:54:13 -0800 (PST) Received: from localhost.localdomain ([211.108.35.36]) by smtp.gmail.com with ESMTPSA id x127sm13143583pfb.74.2021.01.17.06.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 06:54:13 -0800 (PST) From: Minwoo Im To: qemu-devel@nongnu.org, qemu-block@nongnu.org Subject: [RFC PATCH V2 10/11] hw/block/nvme: add NMIC enum value for Identify Namespace Date: Sun, 17 Jan 2021 23:53:40 +0900 Message-Id: <20210117145341.23310-11-minwoo.im.dev@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210117145341.23310-1-minwoo.im.dev@gmail.com> References: <20210117145341.23310-1-minwoo.im.dev@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=minwoo.im.dev@gmail.com; helo=mail-pg1-x52c.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 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 --- include/block/nvme.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/block/nvme.h b/include/block/nvme.h index e83ec1e124c6..dd7b5ba9ef4c 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -1110,6 +1110,10 @@ enum NvmeNsIdentifierType { NVME_NIDT_CSI = 0x04, }; +enum NvmeNsNmic { + NVME_NMIC_NS_SHARED = 1 << 0, +}; + enum NvmeCsi { NVME_CSI_NVM = 0x00, NVME_CSI_ZONED = 0x02,