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: 1532064 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: 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=fm1 header.b=htmS62kY; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=pirkKkeu; 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 ozlabs.org (Postfix) with ESMTPS id 4HG3pR3qcnz9sXk for ; Fri, 24 Sep 2021 17:39:59 +1000 (AEST) Received: from localhost ([::1]:58684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTfoL-00019I-4Y for incoming@patchwork.ozlabs.org; Fri, 24 Sep 2021 03:39:57 -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+incoming=patchwork.ozlabs.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