From patchwork Mon Jun 14 20:18:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 12319741 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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 43C43C2B9F4 for ; Mon, 14 Jun 2021 20:20:45 +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 ED21761246 for ; Mon, 14 Jun 2021 20:20:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED21761246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:52734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lst4d-0002Uo-WA for qemu-devel@archiver.kernel.org; Mon, 14 Jun 2021 16:20:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lst3M-0000Xb-C6; Mon, 14 Jun 2021 16:19:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:39903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lst3K-0008Me-5O; Mon, 14 Jun 2021 16:19:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623701953; bh=LPLWS+bOik/fTWKkiDmp/qtDFJM30lie49dPcLbpRpQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=h1dqllJnxr3eMjDtcu6lt5QV7xT2whHaOVftX4Czo79IUGWNHpENtsFDsWDpgHPbH IpmH5pFRYyryKoUF8u7CWnN0PEvIq5T6re0ZJx+sXfzcMeprLhNjnlvVsRuNLttOnk ePHuPETZ4MBoZ4stMrgaeQZmVArk/bdXcAlzzoxs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([62.143.247.63]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mr9G2-1lV3VH1ODu-00oDuy; Mon, 14 Jun 2021 22:19:13 +0200 From: Heinrich Schuchardt To: Keith Busch , Klaus Jensen Subject: [PATCH v3 0/2] hw/nvme: namespace parameter for EUI-64 Date: Mon, 14 Jun 2021 22:18:59 +0200 Message-Id: <20210614201901.17871-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:mpmAgnfQ33OKunG68u7amM6aq5VappOlxGa+RK/lw49Zt5PZwiV C1GCiKrkZmMQsR6vUoZ/gDJxgdEd+Ir2UQr2Q6MZVqgdRy8FwUNiEbBngaKc/5SmIeUq1lQ YXRMv1qXBrQsLym8EzSXdWmCbXKsj8kSD2ZIMqROqy3iFoPLtHrl4+Ym3k4AFCoB3rh8ffR IbwRGQasdCgVVZF9mfUWg== X-UI-Out-Filterresults: notjunk:1;V03:K0:x/SS+42A3n4=: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4B3mcIviO7DzTgMyPOtoproQG98KyOjmaInovOk hCqoFP959Rc1MqnEWozG04INoz9p7JTQsAB Received-SPF: pass client-ip=212.227.17.22; envelope-from=xypron.glpk@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Heinrich Schuchardt , qemu-block@nongnu.org, Eduardo Habkost , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The EUI-64 field is the only identifier for NVMe namespaces in UEFI device paths. Add a new namespace property "eui64", that provides the user the option to specify the EUI-64. v3: use 52-54-00-00-00-00-00-00 as starting values for generating EUI-64s Heinrich Schuchardt (2): hw/nvme: namespace parameter for EUI-64 hw/nvme: default for namespace EUI-64 docs/system/nvme.rst | 6 +++++ hw/core/machine.c | 1 + hw/nvme/ctrl.c | 58 ++++++++++++++++++++++++++------------------ hw/nvme/ns.c | 11 +++++++++ hw/nvme/nvme.h | 3 +++ 5 files changed, 56 insertions(+), 23 deletions(-) Reviewed-by: Klaus Jensen --- 2.30.2