All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>,
	andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v3 3/4] drivers/vhost/blk: hold requests failed with ENOSPC
Date: Tue, 1 Dec 2026 08:56:17 +0000	[thread overview]
Message-ID: <010701a230d1ac37-b4625c1c-a53d-4a38-bcac-9ad7dd481c1d-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261201085020.1884923-4-alexander.ivanov@virtuozzo.com>

> When the image of a vhost-blk disk runs out of space, dm-qcow2 or
> dm-ploop with report_enospc fails the bio with ENOSPC, and vhost-blk
> passes it to the guest as VIRTIO_BLK_S_IOERR. The guest gets a write
> error, where QEMU with werror=enospc would pause the VM until the space
> is freed.
> 
> Let QEMU choose with VHOST_BLK_SET_ERROR_POLICY the requests to hold
> on ENOSPC: writes (with flushes, write zeroes and discards, as werror
> covers them in QEMU) and reads. A held request is not put to the used
> ring, the eventfd set with VHOST_BLK_SET_ERROR_FD is signalled, and
> QEMU reads the list of held requests with VHOST_BLK_GET_HELD_REQS to
> pause the VM and resubmit them on resume. A request split into several
> bios is held only if none of them failed with an error other than
> ENOSPC.
> 
> [ ... ]
> so that they do not race with VHOST_RESET_OWNER dropping the eventfd.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> Feature: vhost-blk: in-kernel accelerator for virtio-blk guests
> Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261201085020.1884923-1-alexander.ivanov@virtuozzo.com?part=3


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

  reply	other threads:[~2026-12-01  8:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  8:50 [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them Alexander Ivanov
2026-12-01  8:50 ` [Devel] [PATCH hci-8.2 v3 1/4] drivers/vhost: split the descriptor chain walk out of vhost_get_vq_desc() Alexander Ivanov
2026-12-01  8:50 ` [Devel] [PATCH hci-8.2 v3 2/4] drivers/vhost/blk: split request parsing out of the guest kick handler Alexander Ivanov
2026-12-01  8:50 ` [Devel] [PATCH hci-8.2 v3 3/4] drivers/vhost/blk: hold requests failed with ENOSPC Alexander Ivanov
2026-12-01  8:56   ` no-reply [this message]
2026-12-01  9:19   ` Konstantin Khorenko
2026-12-01 11:25     ` Alexander Ivanov
2026-12-01  8:50 ` [Devel] [PATCH hci-8.2 v3 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl Alexander Ivanov
2026-12-01  9:01   ` no-reply
2026-12-01 11:14     ` Alexander Ivanov
2026-12-01  9:19   ` Konstantin Khorenko
2026-12-01 11:16     ` Alexander Ivanov
2026-12-01  9:19 ` [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them 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=010701a230d1ac37-b4625c1c-a53d-4a38-bcac-9ad7dd481c1d-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.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 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.