From: Niklas Cassel <cassel@kernel.org>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>,
Fam Zheng <fam@euphon.net>, John Snow <jsnow@redhat.com>,
"Denis V. Lunev" <den@openvz.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
Sam Li <faithilikerun@gmail.com>,
Damien Le Moal <dlemoal@kernel.org>,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH v6 00/15] block: fix the zone write granularity and the zone append limit
Date: Tue, 27 Oct 2026 21:50:15 +0100 [thread overview]
Message-ID: <auEOhyERyw6IeAIg@ryzen> (raw)
In-Reply-To: <20261027204114.GI933537@shajnocz.csb>
On Tue, Oct 27, 2026 at 04:41:14PM -0400, Stefan Hajnoczi wrote:
> On Mon, Sep 21, 2026 at 04:28:02PM +0200, Niklas Cassel wrote:
> > Hello Stefan, Kevin, and everyone else,
> >
> > This series fixes how QEMU reports and enforces the two constraints that a
> > zoned device places on a write to a sequential zone: the write granularity,
> > and the largest zone append that it accepts. It also fixes two bugs in the
> > zone append emulation in file-posix, one of which a guest can reach.
> >
> > Most of it is preparation for Sam Li's zoned qcow2 series. The first two
> > patches are taken directly from there, as they are unrelated to qcow2.
> >
> > Changes since v5:
> > -Picked up Stefan's Reviewed-by tags that he gave when reviewing v4.
> > Patches that have changed significantly since v4 have had tags dropped
> > (i.e. they will have neither Damien's nor Stefan's Reviewed-by tags).
> >
> > Niklas Cassel (13):
> > block: add a helper for the index of the zone an offset falls in
> > block: add a helper to check if a zone is conventional
> > hw/block: derive the zone write granularity from the block sizes
> > virtio-blk: check the write granularity of writes to sequential zones
> > hw/block: reject a zoned device that the block sizes cannot address
> > block: reject zone appends that are not a multiple of the sector size
> > block: reject a zone append that is larger than a zone
> > file-posix: remove the zone append write granularity check
> > virtio-blk: add a max-append-sectors property
> > block: remove BlockLimits.max_append_sectors
> > file-posix: reject a zone append past the device capacity
> > file-posix: reject a zone append to a full or conventional zone
> > block: do not use CoroutineIOCompletion to hold a return value
> >
> > Sam Li (2):
> > block: widen BlockLimits.zone_size to uint64_t
> > virtio-blk: do not merge requests across a zone boundary
> >
> > block/block-backend.c | 11 +++
> > block/file-posix.c | 59 +++++++-----
> > block/io.c | 79 ++++++++++++----
> > hw/block/block.c | 68 ++++++++++++++
> > hw/block/virtio-blk.c | 146 ++++++++++++++++++++++++++----
> > include/block/block-io.h | 14 +++
> > include/block/block_int-common.h | 19 +++-
> > include/hw/block/block.h | 14 +++
> > include/hw/virtio/virtio-blk.h | 1 +
> > include/system/block-backend-io.h | 1 +
> > 10 files changed, 349 insertions(+), 63 deletions(-)
> >
> >
> > base-commit: 3b5d71cc3652fa7f5ecc449f05dae3ead2b718d7
> > --
> > 2.55.0
> >
>
> Thanks, applied to my block tree:
> https://gitlab.com/stefanha/qemu/commits/block
Thank you Stefan!
Kind regards,
Niklas
prev parent reply other threads:[~2026-10-27 20:51 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 14:28 [PATCH v6 00/15] block: fix the zone write granularity and the zone append limit Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 01/15] block: widen BlockLimits.zone_size to uint64_t Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 02/15] virtio-blk: do not merge requests across a zone boundary Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 03/15] block: add a helper for the index of the zone an offset falls in Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 04/15] block: add a helper to check if a zone is conventional Niklas Cassel
2026-09-22 18:55 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 05/15] hw/block: derive the zone write granularity from the block sizes Niklas Cassel
2026-09-22 18:58 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 06/15] virtio-blk: check the write granularity of writes to sequential zones Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 07/15] hw/block: reject a zoned device that the block sizes cannot address Niklas Cassel
2026-09-22 19:01 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 08/15] block: reject zone appends that are not a multiple of the sector size Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 09/15] block: reject a zone append that is larger than a zone Niklas Cassel
2026-09-22 19:04 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 10/15] file-posix: remove the zone append write granularity check Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 11/15] virtio-blk: add a max-append-sectors property Niklas Cassel
2026-09-22 19:14 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 12/15] block: remove BlockLimits.max_append_sectors Niklas Cassel
2026-09-22 19:16 ` Stefan Hajnoczi
2026-09-21 14:28 ` [PATCH v6 13/15] file-posix: reject a zone append past the device capacity Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 14/15] file-posix: reject a zone append to a full or conventional zone Niklas Cassel
2026-09-21 14:28 ` [PATCH v6 15/15] block: do not use CoroutineIOCompletion to hold a return value Niklas Cassel
2026-10-06 13:15 ` [PATCH v6 00/15] block: fix the zone write granularity and the zone append limit Niklas Cassel
2026-10-15 7:37 ` Niklas Cassel
2026-10-22 7:47 ` Niklas Cassel
2026-10-22 7:50 ` Michael S. Tsirkin
2026-10-27 20:41 ` Stefan Hajnoczi
2026-10-27 20:50 ` Niklas Cassel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=auEOhyERyw6IeAIg@ryzen \
--to=cassel@kernel.org \
--cc=den@openvz.org \
--cc=dlemoal@kernel.org \
--cc=faithilikerun@gmail.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.