From: Stefan Hajnoczi <stefanha@redhat.com>
To: Michael Bommarito <michael.bommarito@gmail.com>
Cc: "Michael S . Tsirkin" <mst@redhat.com>,
Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH] virtio-blk: store the zone-append sector as little-endian
Date: Thu, 18 Jun 2026 11:20:59 -0400 [thread overview]
Message-ID: <20260618152059.GF720244@fedora> (raw)
In-Reply-To: <20260617151739.4072252-1-michael.bommarito@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
On Wed, Jun 17, 2026 at 11:17:39AM -0400, Michael Bommarito wrote:
> The zone-append completion path writes the append sector back to the
> guest with virtio_stq_p(), the VIRTIO_F_VERSION_1-aware accessor,
> while the rest of the zoned reply path (the zone report descriptors
> and the report header) stores its fields with cpu_to_le64(). The
> zoned feature is only defined for VIRTIO 1.x devices and the virtio
> specification defines all of its fields as little-endian, so store the
> append sector with stq_le_p() too, for a single spec-matching
> convention across the zoned path.
>
> This is not a functional change for a VIRTIO 1.x device, where
> virtio_stq_p() already stores little-endian; it only removes the mixed
> convention within the zoned reply path.
>
> Suggested-by: Michael S. Tsirkin <mst@redhat.com>
> Assisted-by: Claude:claude-opus-4-8
> Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
> ---
> Testing: builds (qemu-system-x86_64) and the qos-test virtio-blk cases
> (basic, indirect, config, resize, msix, idx, nxvirtq, hotplug) pass
> against the patched binary. No functional change on a
> VIRTIO_F_VERSION_1 device, where virtio_stq_p() already stores
> little-endian.
>
> hw/block/virtio-blk.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-06-18 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 15:17 [PATCH] virtio-blk: store the zone-append sector as little-endian Michael Bommarito
2026-06-18 15:20 ` Stefan Hajnoczi [this message]
2026-06-18 16:23 ` Daniel P. Berrangé
2026-06-18 17:49 ` Michael Bommarito
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=20260618152059.GF720244@fedora \
--to=stefanha@redhat.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=michael.bommarito@gmail.com \
--cc=mst@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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.