From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 C7FD0C433E2 for ; Tue, 15 Sep 2020 20:51:22 +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 F03AC20809 for ; Tue, 15 Sep 2020 20:51:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F03AC20809 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]:58706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIHv6-0002gz-J2 for qemu-devel@archiver.kernel.org; Tue, 15 Sep 2020 16:51:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIHqU-0007AI-53; Tue, 15 Sep 2020 16:46:35 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:52341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIHqR-0005jf-J6; Tue, 15 Sep 2020 16:46:33 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 1FFDA5803CF; Tue, 15 Sep 2020 16:46:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 15 Sep 2020 16:46:30 -0400 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=fm1; bh=vCkhGcQlFAmTI2qMBXMg3d+qaez CL/kbOU8m+zS3kFc=; b=VoEjPvPbeuJlU14vbrzwFvwDuYOnA06h3gyFGnt7HQa /HRgFyVhjI8ZOib3X49qcCeVewLI0aDBYoB8hv9eYLrL5gKBMubXtkk9Cyas+m1g ba66uxXy1aHrTqsLoc6qLDZvRNR5xqAfFj3puiooxcvqtt2m2tJe1EFaPPqHLFv+ wCfpIfppoFIVb5HVFvnkVAlibQeqU6dCno+XqBS/4zMVpy2G5d7Iy2gkXx4fCT6N Mb+WcSM4x4682J10W538sDqf26UMa8NT1XnjIRYYfuii1o2CmjmgM+ZmH9B3ZriO JbDq/6VByNShlRzh1jemNWYpYr7qftechNoT0u8CHfA== 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=fm3; bh=vCkhGc QlFAmTI2qMBXMg3d+qaezCL/kbOU8m+zS3kFc=; b=WsDlEtq/r7ljPTTDpHjj58 V72AxEi0ZA+esZmVjFyUIBCgXweLqdhfHfXLoY+Om5NZ6ObczoDr+P5s/41pZ/aq fqpGWQPcrPY9cZp6TMFPkxc4P/FC6l7dbgba330Xe4NQS2fsXldse/ZUmZ28Pp7B iCdVX94xw6XmdnVDzkt12M8sIZyDgU8RfMLnfzwT9kNWnhoKmkKvVCTnu4ypQi9b R9ZtCHAZGUgFHEw7HIykEAlka8WJVsabIOB7sc8wHQr/l5NktUaO39RNeiBjIDhi O1/DLyrvq2omFkin81pbPbAdgIaYx4Xt3Moq/TT00BJG+TZOovC05GL8g3Y6PoGg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtddtgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefmlhgruhhs ucflvghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtth gvrhhnpeejgeduffeuieetkeeileekvdeuleetveejudeileduffefjeegfffhuddvudff keenucfkphepkedtrdduieejrdelkedrudeltdenucevlhhushhtvghrufhiiigvpedtne 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 63B753064683; Tue, 15 Sep 2020 16:46:26 -0400 (EDT) Date: Tue, 15 Sep 2020 22:46:24 +0200 From: Klaus Jensen To: Dmitry Fomichev Subject: Re: [PATCH v3 14/15] hw/block/nvme: Use zone metadata file for persistence Message-ID: <20200915204624.GB14485@apples.localdomain> References: <20200913221436.22844-1-dmitry.fomichev@wdc.com> <20200913221436.22844-15-dmitry.fomichev@wdc.com> <20200915190935.GD499689@apples.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=66.111.4.221; envelope-from=its@irrelevant.dk; helo=new1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/15 16:46:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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_H3=0.001, RCVD_IN_MSPIKE_WL=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: Fam Zheng , Kevin Wolf , Damien Le Moal , "qemu-block@nongnu.org" , Niklas Cassel , Klaus Jensen , "qemu-devel@nongnu.org" , Alistair Francis , Keith Busch , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Matias Bjorling Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sep 15 20:44, Dmitry Fomichev wrote: > > -----Original Message----- > > From: Klaus Jensen > > Sent: Tuesday, September 15, 2020 3:10 PM > > To: Dmitry Fomichev > > Cc: Keith Busch ; Klaus Jensen > > ; Kevin Wolf ; Philippe > > Mathieu-Daud=C3=A9 ; Maxim Levitsky > > ; Fam Zheng ; Niklas Cassel > > ; Damien Le Moal ; > > qemu-block@nongnu.org; qemu-devel@nongnu.org; Alistair Francis > > ; Matias Bjorling > > Subject: Re: [PATCH v3 14/15] hw/block/nvme: Use zone metadata file for > > persistence > >=20 > > On Sep 14 07:14, Dmitry Fomichev wrote: > > > A ZNS drive that is emulated by this module is currently initialized > > > with all zones Empty upon startup. However, actual ZNS SSDs save the > > > state and condition of all zones in their internal NVRAM in the event > > > of power loss. When such a drive is powered up again, it closes or > > > finishes all zones that were open at the moment of shutdown. Besides > > > that, the write pointer position as well as the state and condition > > > of all zones is preserved across power-downs. > > > > > > This commit adds the capability to have a persistent zone metadata > > > to the device. The new optional module property, "zone_file", > > > is introduced. If added to the command line, this property specifies > > > the name of the file that stores the zone metadata. If "zone_file" is > > > omitted, the device will be initialized with all zones empty, the same > > > as before. > > > > > > If zone metadata is configured to be persistent, then zone descriptor > > > extensions also persist across controller shutdowns. > > > > > > Signed-off-by: Dmitry Fomichev > >=20 > > This doesn't build on mingw. >=20 > Thanks for letting me know. I'll try to look into this. Do you cross-comp= ile > with mingw64? Yup, make docker-test-mingw@fedora --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAl9hKBkACgkQTeGvMW1P DekJYwf/bfPKuyqSbE1Ir71fGH2lFmDbroMwj0TOtvSrn+7UdjUtE45QgLVLGbY7 7FC4Dnm5aKfF7uPr3TQdolR+wlCOzblTPSt3jiGdYLXhmOuWJdTa4ITXmWhuOlXg LLc7TjcOb0Yqi0YWBRD3FgNErhEDGMHeIa5l/p0bof8UuL5+XEOI0AcPPiHmvx/K FxJtpqAWKaj4wUHzwVddZ3KgBSTLx5w7/RpWt5pnNZR7alLXQqZKcX7MeVO0L3Ig ZsEBfw3nI3kgZaBCW4UsfFPa/izj5E0F/KBODpwBHzHSLJKX/V/hn/CbfQQ129vc ynG1/tES4zy42Hyk1u5oDMzmjroDUQ== =mGoJ -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--