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 > Assisted-by: Claude:claude-opus-4-8 > Signed-off-by: Michael Bommarito > --- > 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