All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 0/2] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD
Date: Mon, 23 Nov 2026 09:40:12 +0100	[thread overview]
Message-ID: <20261123084014.176824-1-alexander.ivanov@virtuozzo.com> (raw)

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.

Patch 1 drops the ring features that are already part of VHOST_FEATURES.
Patch 2 handles VIRTIO_BLK_T_DISCARD as a single-segment request sent
to the backend as one REQ_OP_DISCARD bio.

The QEMU side advertises the discard limits in the config space and is
sent separately.

https://virtuozzo.atlassian.net/browse/VSTOR-141683

Alexander Ivanov (2):
  drivers/vhost/blk: drop ring features already in VHOST_FEATURES
  drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD

 drivers/vhost/blk.c | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

-- 
2.53.0

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

             reply	other threads:[~2026-11-23  8:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  8:40 Alexander Ivanov [this message]
2026-11-23  8:40 ` [Devel] [PATCH hci-8.2 1/2] drivers/vhost/blk: drop ring features already in VHOST_FEATURES Alexander Ivanov
2026-11-23  8:43   ` no-reply
2026-11-23  8:40 ` [Devel] [PATCH hci-8.2 2/2] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD Alexander Ivanov
2026-11-23  8:45   ` no-reply
2026-11-23  8:57     ` Alexander Ivanov
2026-11-23 13:36   ` Andrey Zhadchenko

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=20261123084014.176824-1-alexander.ivanov@virtuozzo.com \
    --to=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 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.