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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 5FE70C433DB for ; Mon, 8 Mar 2021 09:50:05 +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 9E4E0651B8 for ; Mon, 8 Mar 2021 09:50:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E4E0651B8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:41528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJCWZ-0000px-DU for qemu-devel@archiver.kernel.org; Mon, 08 Mar 2021 04:50:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCTG-00009m-SS; Mon, 08 Mar 2021 04:46:38 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:42269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCTD-0002XY-H1; Mon, 08 Mar 2021 04:46:38 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 628CF3485; Mon, 8 Mar 2021 04:46:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 08 Mar 2021 04:46:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=qzxGbPmDviDT8rnKQoyTElC7AQK JZ8KKq2mQuLEObx8=; b=z4T/ZonqFPWG3lxVT5Piolg+gPJhuKYb2C1wT1ELu6m tF+STFQpUagYU5hs/8QItqwlLtr3sNL6mdyGmS2eb807okCHzoMCsovzSjo63hGK tVAppmdYkVr7GMi+3tr8sQmTU4vYwXwy7H8kPKqzWwITzXnKKaKqEnslOeH5gqE1 KDxiKOYJ2J0Y9cykOyp+7zWJgRawbJcEAlgShIhNzqFxU/allzyMRIrWNx+Oi6pt hiXRkQ0TAamveOtCsYoilS5IX6iLQ3ofPLWwqiTvniEOn8f1zFDoA41kU0V2zZt1 gb4OuFYyZJeMKG7ZbU+0m3BpUwmx4BbOc6XtR/sC/sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=qzxGbP mDviDT8rnKQoyTElC7AQKJZ8KKq2mQuLEObx8=; b=WBR5thF0VFHpnliGSYgztY Gh226ZJ0Wrz14NpAMmTsg0B3RyYQs9n69jhtiR+edn3ZJWmzXfatAq2HqWGnYrNx 0IPkVbPP+l7ZVGgTv8IgP9VBvXVt1N5aDbCR/ZVr+4gBoj7ztySAe9ejTNIfPDDb WzpsWZNDmt31+18jyhcD/liAqJpvTgwDBNefOR+MKPnqkuzOq6Hm4oYq5SP70Tr4 9XgMhbw5pqYKkXhOpvRnXt4PJXqD7f9cpzNRItEeBRwT/IDd6I+9Kubd3BYKT5WE JslJYM9SpKtoi69QNFihGGOCwnNxruu91DnvnX625HfznEIf7UCjpKR7twuKk6qA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudduvddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtdorredttdejnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpeeuueffiefhgffgteehjeeiveeludfhteffhfehiefgheetjeeitedvtdegvdeh tdenucfkphepkedtrdduieejrdelkedrudeltdenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehithhssehirhhrvghlvghvrghnthdrughk X-ME-Proxy: Received: from apples.localdomain (80-167-98-190-cable.dk.customer.tdc.net [80.167.98.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 0DC8C1080066; Mon, 8 Mar 2021 04:46:28 -0500 (EST) Date: Mon, 8 Mar 2021 10:46:26 +0100 From: Klaus Jensen To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [PATCH v2] hw/nvme: move nvme emulation out of hw/block Message-ID: References: <20210301113509.79706-1-its@irrelevant.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ORZxfNy5meCjTKJR" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=64.147.123.24; envelope-from=its@irrelevant.dk; helo=wout1-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_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: Kevin Wolf , qemu-block@nongnu.org, Klaus Jensen , qemu-devel@nongnu.org, Max Reitz , Keith Busch Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --ORZxfNy5meCjTKJR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 8 10:44, Philippe Mathieu-Daud=C3=A9 wrote: > Hi Klaus, >=20 > On 3/1/21 12:35 PM, Klaus Jensen wrote: > > From: Klaus Jensen > >=20 > > With the introduction of the nvme-subsystem device we are really > > cluttering up the hw/block directory. > >=20 > > As suggested by Philippe previously, move the nvme emulation to > > hw/nvme. >=20 > Maybe type "NVMe" when talking about the technology and keep > lowercase "nvme" only in paths? >=20 > >=20 > > Suggested-by: Philippe Mathieu-Daud=C3=A9 > > Signed-off-by: Klaus Jensen > > --- > > v2: > > * rebased on nvme-next > > * got rid of the second patch (Minwoo) > >=20 > > meson.build | 1 + > > hw/block/nvme-ns.h | 193 --------------------- > > hw/block/nvme-subsys.h | 32 ---- > > hw/{block =3D> nvme}/nvme.h | 198 ++++++++++++++++++++= +- >=20 > I'd split this patch in 3: >=20 > 1: Add missing license in hw/block/nvme.h header >=20 > > hw/nvme/trace.h | 1 + > > hw/{block/nvme.c =3D> nvme/ctrl.c} | 1 - > > hw/{block/nvme-ns.c =3D> nvme/ns.c} | 1 - > > hw/{block/nvme-subsys.c =3D> nvme/subsys.c} | 2 +- > > MAINTAINERS | 2 +- > > hw/Kconfig | 1 + > > hw/block/Kconfig | 5 - > > hw/block/meson.build | 1 - > > hw/block/trace-events | 182 -------------------- > > hw/meson.build | 1 + > > hw/nvme/Kconfig | 4 + > > hw/nvme/meson.build | 1 + > > hw/nvme/trace-events | 180 ++++++++++++++++++++ > > 17 files changed, 387 insertions(+), 419 deletions(-) > > delete mode 100644 hw/block/nvme-ns.h > > delete mode 100644 hw/block/nvme-subsys.h >=20 > 2: Merge nvme-ns.h & nvme-subsys.h to hw/block/nvme.h, adding > Minwoo Im (c). >=20 > > rename hw/{block =3D> nvme}/nvme.h (55%) > > create mode 100644 hw/nvme/trace.h > > rename hw/{block/nvme.c =3D> nvme/ctrl.c} (99%) > > rename hw/{block/nvme-ns.c =3D> nvme/ns.c} (99%) > > rename hw/{block/nvme-subsys.c =3D> nvme/subsys.c} (98%) > > create mode 100644 hw/nvme/Kconfig > > create mode 100644 hw/nvme/meson.build > > create mode 100644 hw/nvme/trace-events >=20 > 3: The rest (basically this patch). >=20 > Regards, >=20 > Phil. >=20 >=20 Thanks! Good suggestions, I'll respin it! --ORZxfNy5meCjTKJR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmBF8m4ACgkQTeGvMW1P Dek2fAf6A8g2tEOU/q1wqeV47P658gHJT+DWFoVYJU9NcJyXDS/7wG2+5UtaAlfH X0GAZFMSMUjjnIihBuGy0jYi69lZpMmz5zTo7otT/7ntxpmQL7WrPALfIM2Z9CQy ihUykXSraOcpmAmL82G1N1/4YzFV6aO8PlTnY0Kgl7HOM41kHwyOb0oZKzBKVbsm n8hbGjzuhTi734REzLhJM5JC83MP4wlwDBuAQ2HmmOadsQsgdFePMbcScydGytHP l4vsPp1eoUwzKA5nk4YuszPSo96wxF/AqMlxEgvO4eQ1ejikhQ4nucEp3juc75wK T2dgN0HaMZPMO4LZazyCZrmlyTsKqg== =XkHP -----END PGP SIGNATURE----- --ORZxfNy5meCjTKJR--