From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v4] drivers/vhost/blk: support VIRTIO_BLK_F_WRITE_ZEROES
Date: Wed, 18 Nov 2026 16:26:32 +0100 [thread overview]
Message-ID: <179501559269.1085329.5599216619817308441.b4-review@b4> (raw)
In-Reply-To: <20261118110813.3333232-1-alexander.ivanov@virtuozzo.com>
Applying with these fixes on my side:
- "The VMM advertises ... and sets" -> "The VMM must advertise ... and
set": our QEMU does not do it yet, the QEMU patch is not in hci-dev
- the cap: "and rounded down to the logical block size", as 8388607
sectors is not a multiple of a 4K block
On Wed, 18 Nov 2026 12:08:13 +0100, Alexander Ivanov wrote:
> The VMM advertises the feature only for a backend with WRITE ZEROES
> support and sets max_write_zeroes_sectors from its limit, capped at
> 8388607 so that the range fits in one bio, and max_write_zeroes_seg
> to 1.
All v3 items are done and the code is fine.
A possible follow-up, not needed for this patch: answer
VIRTIO_BLK_S_UNSUPP instead of VIRTIO_BLK_S_IOERR when the backend has
no WRITE ZEROES (and for a bio that fails with BLK_STS_NOTSUPP). I
asked for IOERR in v3, but a Linux guest since 39722a2f2bcd8 ("block:
limit the Write Zeroes to manually writing zeroes fallback") writes
zeroes itself only on -EOPNOTSUPP, which UNSUPP maps to. With IOERR,
BLKZEROOUT in the guest fails with -EIO once a host disk drops its
limit (sd and dm can do that at runtime).
Thanks.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-18 15:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 11:08 Alexander Ivanov
2026-11-18 11:13 ` no-reply
2026-11-18 11:45 ` Andrey Zhadchenko
2026-11-18 15:26 ` Konstantin Khorenko [this message]
2026-11-18 15:26 ` Konstantin Khorenko
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=179501559269.1085329.5599216619817308441.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=devel@openvz.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox