From patchwork Tue Apr 19 12:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 1618899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=irrelevant.dk header.i=@irrelevant.dk header.a=rsa-sha256 header.s=fm3 header.b=k5BgQTW8; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=omqq00Vj; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KjN7v0lzkz9sG2 for ; Tue, 19 Apr 2022 22:16:27 +1000 (AEST) Received: from localhost ([::1]:34698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngmmO-0007Fm-F8 for incoming@patchwork.ozlabs.org; Tue, 19 Apr 2022 08:16:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngmh1-0006bf-2W; Tue, 19 Apr 2022 08:10:51 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:34099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngmgy-0003Wa-Oa; Tue, 19 Apr 2022 08:10:50 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 345523202092; Tue, 19 Apr 2022 08:10:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 19 Apr 2022 08:10:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; t=1650370243; x=1650456643; bh=Ne OqZ/wojaskVbdz/pIUbtI/usiQihDcffYmZ4yeSpc=; b=k5BgQTW8aa9edsWfrB w4htfsrCLlG+GamwAxxq/k5eo42O5+f4vIzcI45eT0dhxXQA62u2OXNyrMFq6Nts sJ3YY86NePN4aYz1zLE0X3GKrcB+9JijiaOLHl2eIADDAbK4/m8SuXX+nriCFgGq tgAOwx+H5d5eEEL5nhjVQ0UCDiuke9ECLX3rzN0bBtDC+Uwm2BJMaONq0rerLJKd 78iinicVXjZFITJ5NG7NdhklyFSVI5nibUTSNTJ9gwSbE7BjQtU+1s+Ms5e8GR6j F2SapNPkb+IDhlxvRpOOC1ZnMUErjGNXoPRzkNnnGeoTKhqiVIUMkT51y08lqsRz 5J5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1650370243; x=1650456643; bh=NeOqZ/wojaskVbdz/pIUbtI/usiQihDcffY mZ4yeSpc=; b=omqq00Vjxlj3FkD13pM17/3pzwrEiC/OI+Va+o2GcKKAnlmBp6I MbxjJHoull4ds1iJoH884tNcKgmvTQQqO9GY9+8qNKhd36xRR7g92i581oZgZlwL rXjqJPWtToXRqdBRvWA8Mmr6ld05NAqSXP/yv0iJs0xLKlLhQrPuPWiKP98U4RgP VPnTxKONnNsax/P6VBKswODar9NpgncMkPoZft+tdbvYAVvtXHIas8x+ppWK7kZk M8Pln0kXoqCMLYELfVLqxeEsSbb0wOrj4lpbIlxzMoTQGBsDYoviBp60vlvDeTUu us9kMd66apXRdjjnsLUWzeN5o8aQ0EX5WXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtfedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffotggggfesthhqredtredtjeenucfhrhhomhepmfhlrghushcu lfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrthhtvg hrnhepveetleefgeekhfelkedvffduleefvdefgeejjeehfeevtdeulefhudetgffgtdfg necuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehithhssehirhhrvghlvghvrghnthdrughk X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Apr 2022 08:10:41 -0400 (EDT) From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH 0/5] hw/nvme: fix namespace identifiers Date: Tue, 19 Apr 2022 14:10:34 +0200 Message-Id: <20220419121039.1259477-1-its@irrelevant.dk> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.25; envelope-from=its@irrelevant.dk; helo=wout2-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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-block@nongnu.org, Klaus Jensen , Klaus Jensen , Luis Chamberlain , Keith Busch , Christoph Hellwig Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen The namespace identifiers reported by the controller is kind of a mess. See [1,2]. This series should fix this for both the `-device nvme,drive=...` and `-device nvme-ns,...` cases. [1]: https://lore.kernel.org/linux-nvme/20220224192845.1097602-1-hch@lst.de/ [2]: https://lore.kernel.org/linux-nvme/20220413044905.376785-1-hch@lst.de/ Klaus Jensen (5): hw/nvme: enforce common serial per subsystem hw/nvme: always set eui64 hw/nvme: do not report null uuid hw/nvme: do not auto-generate uuid hw/nvme: bump firmware revision docs/system/devices/nvme.rst | 6 ++++-- hw/nvme/ctrl.c | 21 ++++++++++----------- hw/nvme/ns.c | 14 +++++++++----- hw/nvme/nvme.h | 4 ++++ hw/nvme/subsys.c | 7 +++++++ 5 files changed, 34 insertions(+), 18 deletions(-) Reviewed-by: Keith Busch