OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: andrey.zhadchenko@virtuozzo.com,
	Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: fix write zeroes errors, support VIRTIO_BLK_F_DISCARD
Date: Mon, 30 Nov 2026 16:24:45 +0100	[thread overview]
Message-ID: <179605228547.1088513.12190336433770259062.b4-ty@b4> (raw)
In-Reply-To: <20261125142145.786278-1-alexander.ivanov@virtuozzo.com>

On Wed, 25 Nov 2026 15:21:41 +0100, Alexander Ivanov wrote:
> drivers/vhost/blk: fix write zeroes errors, support VIRTIO_BLK_F_DISCARD
> 
> vhost-blk does not offer VIRTIO_BLK_F_DISCARD, so a guest on vhost-blk
> cannot release unused blocks of its disk, while virtio-blk in QEMU can.
> 
> vhost-blk also fails WRITE ZEROES with VIRTIO_BLK_S_IOERR when the range
> is above the backend limit, which the guest does not know, and once the
> backend loses WRITE ZEROES support, e.g. on a dm table reload. In the
> latter case the guest gets -EIO instead of falling back to writing
> zeroes itself.
> 
> [...]

Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.26.6.vz10, thanks!

[1/4] drivers/vhost/blk: drop ring features already in VHOST_FEATURES
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8b799e203feb
[2/4] drivers/vhost/blk: stop failing write zeroes above the backend limit
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/eae6c95d3a96
[3/4] drivers/vhost/blk: return UNSUPP for write zeroes on a backend without it
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/12fc00d18d45
[4/4] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/f7e30da4f53b

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

      parent reply	other threads:[~2026-11-30 15:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:21 Alexander Ivanov
2026-11-25 14:21 ` [Devel] [PATCH hci-8.2 v4 1/4] drivers/vhost/blk: drop ring features already in VHOST_FEATURES Alexander Ivanov
2026-11-25 14:21 ` [Devel] [PATCH hci-8.2 v4 2/4] drivers/vhost/blk: stop failing write zeroes above the backend limit Alexander Ivanov
2026-11-25 14:21 ` [Devel] [PATCH hci-8.2 v4 3/4] drivers/vhost/blk: return UNSUPP for write zeroes on a backend without it Alexander Ivanov
2026-11-25 14:21 ` [Devel] [PATCH hci-8.2 v4 4/4] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD Alexander Ivanov
2026-11-26 11:31 ` [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: fix write zeroes errors, " Andrey Zhadchenko
2026-11-30 15:24 ` Konstantin Khorenko
2026-11-30 15:24 ` Konstantin Khorenko [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=179605228547.1088513.12190336433770259062.b4-ty@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=alexander.ivanov@virtuozzo.com \
    --cc=andrey.zhadchenko@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