From patchwork Fri Sep 24 07:27:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 12514293 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 AF8EBC433EF for ; Fri, 24 Sep 2021 07:42:59 +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 7A88D60E94 for ; Fri, 24 Sep 2021 07:42:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7A88D60E94 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:40128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTfrG-0007r1-Bs for qemu-devel@archiver.kernel.org; Fri, 24 Sep 2021 03:42:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTfcd-0003AA-RC; Fri, 24 Sep 2021 03:27:51 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTfcZ-0002nz-1I; Fri, 24 Sep 2021 03:27:51 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7D0F15C01F6; Fri, 24 Sep 2021 03:27:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 24 Sep 2021 03:27:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm1; bh=F3fE/DNyu97SsBqpZ8zdbg9aPy 3Nw2T+DxDRqBV2Bzc=; b=htmS62kYOE/AdcuTMXeqXysAKF1In0rfW8NVFxNTOM UdpJFmbJhncKlm3kwJfqXEWSrvfXvVOb85H6zpvog9WgLMf5xPqpQebHzuLypYpn jMBh8ALdIOkUHj/69I1T0jDkvzYOK1+wlOqyCGP9ekxxY3GodD/CUWdmpqGnjaSR /O14Dc+Q4Q1RVDZkrbbU6mEHbUjsfnF0wAGsPRTdBtSObVxnisl4I2lCtQP+rE4k exK5kOipP32VQxeE6DqHSJ8JyRzoZlTwbxhWU0VnmncF+lRPUbD7XfSdXqv+mldp Eqq4RrzBOZevKvfHVDUQ92yBMxWztTeUh738VFHCZpIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=F3fE/D Nyu97SsBqpZ8zdbg9aPy3Nw2T+DxDRqBV2Bzc=; b=pirkKkeuGIGbrC6DTh2HQu FWLcBnTW96E7wK7Kj44wF+MMcR+ilKob89wgOBdjqQRpn7d08gsZxJ6AGl6YokSZ HIu0hk/LW29jsyb0niF6aNnyxCT6jq+Ah93KBQFOYl7eQcHtAicfvX27+4nRHuW0 wwuKAaSOGRWDlpqAvv1l9uupMHMpEiqpIVTEhW6a+igyZa3hvzNJs9Ofg+7lNOE0 kxRk7wafrInlOgfWzLk+WK6znssXz6uefc6KJ/LqyWQvC2nCD5BUwMWhrVHeabR8 YBCtjZWUkQi9cs0cntJgVjIlPHE55RJ/wzYJXRak5Y3l0MLb+9KexRsfMlLrxiVg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejtddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgtggfgsehtqhertdertdejnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpefhgeevkeeigfekvedvteejjeekkedugfdvheeijeffgfekffdvveelffetvdeg hfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehith hssehirhhrvghlvghvrghnthdrughk X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Sep 2021 03:27:43 -0400 (EDT) From: Klaus Jensen To: qemu-devel@nongnu.org Subject: [PATCH 0/2] hw/nvme: fix namespace attachment on controller hotplug Date: Fri, 24 Sep 2021 09:27:40 +0200 Message-Id: <20210924072742.306473-1-its@irrelevant.dk> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Received-SPF: pass client-ip=66.111.4.27; envelope-from=its@irrelevant.dk; helo=out3-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, RCVD_IN_MSPIKE_H2=-0.001, 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: Eduardo Habkost , qemu-block@nongnu.org, Klaus Jensen , Keith Busch , Hannes Reinecke , Klaus Jensen Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Klaus Jensen First patch from Hannes fixes the subsystem registration process such that shared (but non-detached) namespaces are automatically attached to hotplugged controllers. The second patch changes the default for 'shared' such that namespaces are shared by default and will thus by default be attached to hotplugged controllers. This adds a compat property for older machine versions and updates the documentation to reflect this. Hannes Reinecke (1): hw/nvme: reattach subsystem namespaces on hotplug Klaus Jensen (1): hw/nvme: change nvme-ns 'shared' default docs/system/devices/nvme.rst | 24 ++++++++++++++---------- hw/core/machine.c | 4 +++- hw/nvme/ns.c | 8 +------- hw/nvme/subsys.c | 10 +++++++++- 4 files changed, 27 insertions(+), 19 deletions(-) Reviewed-by: Keith Busch