Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 404B2CD8C92 for ; Mon, 8 Jun 2026 13:28:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wWa1T-0001s4-Gm; Mon, 08 Jun 2026 09:28:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wWZIg-0006Wn-9y; Mon, 08 Jun 2026 08:41:56 -0400 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wWZIc-0002Ws-TK; Mon, 08 Jun 2026 08:41:52 -0400 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id D27176001D; Mon, 8 Jun 2026 12:41:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD19C1F00893; Mon, 8 Jun 2026 12:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780922507; bh=Dq3qiz9hWBqNkDR7DcNvIr5pIw/hfGcTGHQL5QR0Ahw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=IOJY9C5MlBF3VpQVHkLKHyY67knFyTErDvdMfk3VnxznvJOaFMAJQ0B9/WTVp0+Lq f+7M2j0sBS6fmSbQ46SaKEInIxvwLp/JlrR1A/RazpXKCMVB+3l+mTNfcN3fyD41bb x0KWLcOCBD36wGZNLkP//iX8eGYqih5TDXMO2DTW9pA2Jnz+Y/sFeADshYjF0idHME 27hj5OnLflYEX7L1r//TvhJzbGXZFnDOiZ+FANY4PkuS5IbPuZeuX2kzAyx7Qowbgn 8vm15HUBRf+DGBLjJHRZ+Gl21M59qlTL5U32MZn1zUqTT+DFE1FdlGTtetVI9ObEMw oD44piUPuJKPw== Date: Mon, 8 Jun 2026 14:41:42 +0200 From: Niklas Cassel To: Sam Li Cc: qemu-devel@nongnu.org, Markus Armbruster , qemu-block@nongnu.org, Eric Blake , Stefan Hajnoczi , Pierrick Bouvier , dmitry.fomichev@wdc.com, Hanna Reitz , hare@suse.de, "Michael S. Tsirkin" , Kevin Wolf , dlemoal@kernel.org Subject: Re: [PATCH v11 1/5] docs/qcow2: add the zoned format feature Message-ID: References: <20260601214405.252818-1-faithilikerun@gmail.com> <20260601214405.252818-2-faithilikerun@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260601214405.252818-2-faithilikerun@gmail.com> Received-SPF: pass client-ip=2600:3c04:e001:324:0:1991:8:25; envelope-from=cassel@kernel.org; helo=tor.source.kernel.org X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 08 Jun 2026 09:27:59 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Mon, Jun 01, 2026 at 11:44:01PM +0200, Sam Li wrote: > Add the specs for the zoned format feature of the qcow2 driver. > The qcow2 file then can emulate real zoned devices, either passed > through by virtio-blk device or NVMe ZNS drive to the guest > given zoned information. > > Signed-off-by: Sam Li > Reviewed-by: Stefan Hajnoczi > --- > docs/system/qemu-block-drivers.rst.inc | 47 ++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/docs/system/qemu-block-drivers.rst.inc b/docs/system/qemu-block-drivers.rst.inc > index 675daa72f9..1af968c4fd 100644 > --- a/docs/system/qemu-block-drivers.rst.inc > +++ b/docs/system/qemu-block-drivers.rst.inc > @@ -172,6 +172,53 @@ This section describes each format and the options that are supported for it. > filename`` to check if the NOCOW flag is set or not (Capital 'C' is > NOCOW flag). > > + .. option:: zone.mode > + If this is set to ``host-managed``, the image is an emulated zoned > + block device. This option is only valid to emulated zoned device files. > + > + .. option:: zone.size > + > + The size of a zone in bytes. The device is divided into zones of this > + size with the exception of the last zone, which may be smaller. > + Defaults to ``256 MiB``. > + > + .. option:: zone.capacity > + > + The initial capacity value, in bytes, for all zones. The capacity must > + be less than or equal to zone size. If the last zone is smaller, then > + its capacity is capped. Defaults to ``zone.size``. > + > + The zone capacity is per zone and may be different between zones in real > + devices. QCow2 sets all zones to the same capacity. > + > + .. option:: zone.conventional_zones > + > + The number of conventional zones of the zoned device. Defaults to ``0`` > + (all zones are sequential-write-required). > + > + .. option:: zone.max_active_zones > + > + The limit of the zones with implicit open, explicit open or closed state. To make the text slightly less ambiguous, perhaps write this as: The maximum allowed active zones (zones in the implicit open, explicit open, or closed state). > + > + The max active zones must be less or equal to the number of SWR > + (sequential write required) zones of the device. Defaults to ``0``, > + meaning no limit. > + > + .. option:: zone.max_open_zones > + > + The maximal allowed open zones. The max open zones must not be larger than The specifications usually use the word maximum instead of maximal. > + the max active zones. Defaults to ``zone.max_active_zones`` if that is > + set, otherwise ``0`` (no limit). > + > + If the limits of open zones or active zones are equal to the number of > + SWR zones, then it is the same as having no limits. > + > + .. option:: zone.max_append_bytes > + > + The number of bytes in a zone append request that can be issued to the > + device. It must be 512-byte aligned and less than the zone capacity. > + Defaults to ``64 KiB``. Perhaps mention what 0 means here. In the VIRTIO specification, 0 means that zone append requests are not supported, while in NVMe ZNS, a value of 0 means follow MDTS, and a MDTS value of 0 means no limit. Kind regards, Niklas