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 v4 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl
Date: Tue, 1 Dec 2026 12:57:38 +0000 [thread overview]
Message-ID: <010701a231aea2c2-1193ca97-9d00-4e68-a622-5057bbf131a9-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261201124931.1969095-5-alexander.ivanov@virtuozzo.com>
> QEMU stops vhost-blk to pause the VM on a held request, and the list of
> held requests is emptied when the device starts again. The heads of
> these requests are already taken from the avail ring, so the kick
> handler never sees them, and the guest waits for them forever.
>
> VHOST_BLK_RESUBMIT parses the descriptor chain of each given head and
> submits the request as if it were just taken from the avail ring. The
> request data stays in guest memory, so QEMU needs only the vq and head
> pairs it read with VHOST_BLK_GET_HELD_REQS, also after a migration. A
> request that fails with ENOSPC again is held again.
>
> Only the owner may resubmit, as the descriptors are walked and the data
> pages are pinned through the mm of the caller.
>
> A head out of range or still in flight fails with -EINVAL or -EBUSY
> before the descriptor chain is walked, as the walk and the request
> parser would report it as a guest error on the vring error eventfd:
> here the caller is at fault, and the errno already says so.
>
> -EFAULT ends the call, so it is left for a fault on the array of the
> caller. A fault on the guest memory of one entry returns -EIO, and QEMU
> goes on with the entries after it.
>
> 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/20261201124931.1969095-1-alexander.ivanov@virtuozzo.com?part=4
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-12-01 12:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 12:49 [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 1/4] drivers/vhost: split the descriptor chain walk out of vhost_get_vq_desc() Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 2/4] drivers/vhost/blk: split request parsing out of the guest kick handler Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 3/4] drivers/vhost/blk: hold requests failed with ENOSPC Alexander Ivanov
2026-12-01 12:49 ` [Devel] [PATCH hci-8.2 v4 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl Alexander Ivanov
2026-12-01 12:57 ` no-reply [this message]
2026-12-01 15:32 ` [Devel] [PATCH hci-8.2 v4 0/4] drivers/vhost/blk: hold requests failed with ENOSPC until QEMU resubmits them Konstantin Khorenko
2026-12-01 15:32 ` 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=010701a231aea2c2-1193ca97-9d00-4e68-a622-5057bbf131a9-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.