From nobody Mon Feb 9 14:37:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1615208098; cv=none; d=zohomail.com; s=zohoarc; b=jdqMaboptAmSpFVZLmbxJ5RCUYGDxvTBzeEhgpSHzmFnPReJjbvC1+EDRekJj8E+fUeMkZ6zi7ry1y06XhzOA/5fYxUfMOl4N3rvS/e9DhOMbodvh60UciWQFGvNDpsKmAZxPrTEj/N5HVJjF/iMTE60bV0S/zbWEGPGcpvFaZA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615208098; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KWLSWw1unQaLZVfhZTxzwd/gYYIDMnb4qVZCXnzU42c=; b=BamYx4UFoXUeJACE3mS356UOkPIM9CfRQZAX8o2QK6eMihgIUgClznKC3Prfr+jj1FY9lz3dU3cn3ZCLuVMbN2QepdgJ/QlGEYg85YLqKig3dHKAko0DPW2gRt9pawVSH0De9cfjLogz7cSvuS45uuigNJbfWHHLbZCtxI1R/5I= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615208098076644.3646701347357; Mon, 8 Mar 2021 04:54:58 -0800 (PST) Received: from localhost ([::1]:52718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJFPU-0004UW-MB for importer@patchew.org; Mon, 08 Mar 2021 07:54:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEvI-0003G0-87; Mon, 08 Mar 2021 07:23:44 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:42665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJEvG-0006zh-Gb; Mon, 08 Mar 2021 07:23:44 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 50A2F32DE; Mon, 8 Mar 2021 07:23:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 08 Mar 2021 07:23:41 -0500 Received: from apples.local (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 5A72A1080063; Mon, 8 Mar 2021 07:23:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm2; bh= KWLSWw1unQaLZVfhZTxzwd/gYYIDMnb4qVZCXnzU42c=; b=CKrMOVTlBa19Z5Kw hMo5fRXNQcKWjGtmhTIwAXCMG8PXULe/AtGEYJ77AvfsgAN1vGftRRvlibPUv6MW Leu6hD2sdlwQCnMKbCemIgxHXzOJVnDF606rnRyFfWQITyjlUoZEU6C817Oeqmw8 aLayfGqk8jX9Iiq5YBjQdpw4V1ARnXxfx/E0ZpOWPYM6ME9N0ZQ6+yCjygt64Sgl VuhWSrcfUVpESUWi7mjSjfNIBruL4VEKxBQNRrQeA5iWoRDbDS2JZpT6bNBMvXop FmcbQxLXOIHYY0I8OUgEGRCYoMgsn7znVtBjE4uLID0o+OsltG8z+TO0z1Zp77sK v26sHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=KWLSWw1unQaLZVfhZTxzwd/gYYIDMnb4qVZCXnzU4 2c=; b=ZU+iFSd6A3KH1cEHlf0zMu9wzlNamaSDpMZ8/tv4EHyT3/CL2PJKq83Qv gXN+zCtH0gxl2bJ3rbsqVkmaMmZVg0LQYc0JskS7rR6xqJW9q4CVrECyv+OJWa9L FKP9detig+j0KRbx33iwnS0XKp967rq5lAZC5WKUhR899c+rKFong5Yw0UT7KlVs QGVv6uu7HFp39Fqs01Ze9QZKl2yEc5fvoPK0h7ODY4PG9+7gB6IVUHGvVW8CZ/qJ ranOQ9a79QPBpyRU9tkhkUD+dtwbVNwmBbLt+GquH0VagmHvFVLZmyibuhqRIVNd Pp+8PFHDwZkCstr5l2A/A/K0Jbj0A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduvddgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepmfhlrghu shculfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrth htvghrnhepteevuedugeevieehgeeileeufeetvddtkeetfeelgeehudfhjeeuledvhfff tdegnecukfhppeektddrudeijedrleekrdduledtnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepihhtshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: From: Klaus Jensen To: Peter Maydell , qemu-devel@nongnu.org Subject: [PULL 15/38] hw/block/nvme: use locally assigned QEMU IEEE OUI Date: Mon, 8 Mar 2021 13:22:50 +0100 Message-Id: <20210308122313.286938-16-its@irrelevant.dk> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210308122313.286938-1-its@irrelevant.dk> References: <20210308122313.286938-1-its@irrelevant.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=64.147.123.18; envelope-from=its@irrelevant.dk; helo=wnew4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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: Fam Zheng , Kevin Wolf , qemu-block@nongnu.org, Klaus Jensen , Gollu Appalanaidu , Max Reitz , Keith Busch , Stefan Hajnoczi , Klaus Jensen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Gollu Appalanaidu Commit 6eb7a071292a ("hw/block/nvme: change controller pci id") changed the controller to use a Red Hat assigned PCI Device and Vendor ID, but did not change the IEEE OUI away from the Intel IEEE OUI. Fix that and use the locally assigned QEMU IEEE OUI instead if the `use-intel-id` parameter is not explicitly set. Also reverse the Intel IEEE OUI bytes. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/block/nvme.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index ae7ccf643673..68d80a0b4c37 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -4698,9 +4698,17 @@ static void nvme_init_ctrl(NvmeCtrl *n, PCIDevice *p= ci_dev) id->cntlid =3D cpu_to_le16(n->cntlid); =20 id->rab =3D 6; - id->ieee[0] =3D 0x00; - id->ieee[1] =3D 0x02; - id->ieee[2] =3D 0xb3; + + if (n->params.use_intel_id) { + id->ieee[0] =3D 0xb3; + id->ieee[1] =3D 0x02; + id->ieee[2] =3D 0x00; + } else { + id->ieee[0] =3D 0x00; + id->ieee[1] =3D 0x54; + id->ieee[2] =3D 0x52; + } + id->mdts =3D n->params.mdts; id->ver =3D cpu_to_le32(NVME_SPEC_VER); id->oacs =3D cpu_to_le16(0); --=20 2.30.1