From: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>,
andrey.zhadchenko@virtuozzo.com,
"Denis V. Lunev" <den@openvz.org>
Cc: svt-core@virtuozzo.com
Subject: Re: [PATCH hci-8.1 v6 0/7] vhost-blk: switch from VHOST_SET_NWORKERS to the mainstream worker ioctls
Date: Thu, 19 Nov 2026 18:35:57 +0200 [thread overview]
Message-ID: <d5ea7863-a7ec-49bf-a947-435c2ce15a6b@virtuozzo.com> (raw)
In-Reply-To: <20261117173734.3225443-1-alexander.ivanov@virtuozzo.com>
On 11/17/26 7:37 PM, Alexander Ivanov wrote:
> The kernel drops our VHOST_SET_NWORKERS ioctl in favour of the
> mainstream VHOST_NEW_WORKER/VHOST_ATTACH_VRING_WORKER, which vhost-blk
> now supports.
>
> Patch 1 wraps VHOST_SET_FORK_FROM_OWNER in a vhost backend op. Patch 2
> refuses num-queues above VHOST_BLK_MAX_QUEUES at realize. Patch 3 is a
> cleanup taking &s->dev into a local pointer. Patches 4 and 5 fix the
> error path of vhost_blk_start(): it returned 0 on some failures and
> left QEMU the owner of the vhost device. Patch 6 makes vhost-blk
> create its num-threads workers with the mainstream ioctls, keeping the
> same worker layout, and fail to start if the kernel cannot provide
> them. Patch 7 drops VHOST_SET_NWORKERS from linux-headers.
>
> v6:
> - rebase on the current hci-8.1
> - new patch 4: keep the original error in vhost_blk_start() instead of
> returning the result of unbinding the guest notifiers
> - new patch 5: undo VHOST_SET_OWNER when vhost_blk_start() fails
> - patch 6: ignore -ENOTTY from VHOST_SET_FORK_FROM_OWNER, so kernels
> lacking it still start vhost-blk with a single thread
> - patch 6: reset the owner when the worker ioctls fail
> - patch 6: drop the claim that released vz10 kernels have
> VHOST_SET_FORK_FROM_OWNER from the commit message
>
> [...]
I'm almost ready to take it. Couple of things:
1. The series no longer applies to hci-dev after latest Andrey's
patches, please rebase.
2. One nit in patch 6 about errno check.
Also: patches 2, 3, 4, 5 appear to be nice cleanups. I'm gonna take
them into hci-8.1 as well (production QA).
The rest (1, 6, 7) goes into hci-dev only.
Andrey
prev parent reply other threads:[~2026-11-19 16:36 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 17:37 Alexander Ivanov
2026-11-17 17:37 ` [PATCH hci-8.1 v6 1/7] vhost-backend: add vhost_set_fork_from_owner op Alexander Ivanov
2026-11-17 17:39 ` no-reply
2026-11-17 17:37 ` [PATCH hci-8.1 v6 2/7] vhost-blk: reject num-queues above VHOST_BLK_MAX_QUEUES Alexander Ivanov
2026-11-17 17:40 ` no-reply
2026-11-17 17:37 ` [PATCH hci-8.1 v6 3/7] vhost-blk: use a local vhost_dev pointer in start and stop Alexander Ivanov
2026-11-17 17:41 ` no-reply
2026-11-18 10:20 ` Alexander Ivanov
2026-11-19 16:32 ` Andrey Drobyshev
2026-11-17 17:37 ` [PATCH hci-8.1 v6 4/7] vhost-blk: fix vhost_blk_start() returning 0 on failure Alexander Ivanov
2026-11-17 17:42 ` no-reply
2026-11-19 16:32 ` Andrey Drobyshev
2026-11-17 17:37 ` [PATCH hci-8.1 v6 5/7] vhost-blk: reset the owner when vhost_blk_start() fails Alexander Ivanov
2026-11-17 17:43 ` no-reply
2026-11-19 16:32 ` Andrey Drobyshev
2026-11-17 17:37 ` [PATCH hci-8.1 v6 6/7] vhost-blk: create kernel threads with the mainstream worker ioctls Alexander Ivanov
2026-11-17 17:47 ` no-reply
2026-11-18 10:31 ` Alexander Ivanov
2026-11-19 16:32 ` Andrey Drobyshev
2026-11-17 17:37 ` [PATCH hci-8.1 v6 7/7] linux-headers: drop VHOST_SET_NWORKERS Alexander Ivanov
2026-11-17 17:49 ` no-reply
2026-11-19 16:32 ` Andrey Drobyshev
2026-11-18 11:32 ` [PATCH hci-8.1 v6 0/7] vhost-blk: switch from VHOST_SET_NWORKERS to the mainstream worker ioctls Andrey Zhadchenko
2026-11-19 16:35 ` Andrey Drobyshev [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=d5ea7863-a7ec-49bf-a947-435c2ce15a6b@virtuozzo.com \
--to=andrey.drobyshev@virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=den@openvz.org \
--cc=svt-core@virtuozzo.com \
/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.