OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 0/2] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD
@ 2026-11-23  8:40 Alexander Ivanov
  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:40 ` [Devel] [PATCH hci-8.2 2/2] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD Alexander Ivanov
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Ivanov @ 2026-11-23  8:40 UTC (permalink / raw)
  To: andrey.zhadchenko; +Cc: devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-23 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  8:40 [Devel] [PATCH hci-8.2 0/2] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD Alexander Ivanov
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox