From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: "Denis V. Lunev" <den@virtuozzo.com>, devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] Revert "drivers/vhost: add ioctl to increase the number of workers"
Date: Mon, 30 Nov 2026 16:41:21 +0100 [thread overview]
Message-ID: <179605328155.24505.11968521369586425911@virtuozzo.com> (raw)
In-Reply-To: <179605262006.1088513.14812449765597436342.b4-review@b4>
Hi Alexander,
One more thing on this change: the new QEMU on a node that still runs
the hci-8.1 kernel.
During an hci-8.1 -> hci-8.2 update the node gets
qemu-kvm >= 10.1.0-20.vz10.33 with 3b0b744f6c4 ("vhost-blk: create
kernel threads with the mainstream worker ioctls"), but keeps running
its 24.x kernel until the reboot. 6afc2f6416c3 ("drivers/vhost/blk: add
support for worker ioctls") is in 26.x only, from 26.1 on; on 24.x
vhost_blk_ioctl() never reaches vhost_worker_ioctl(), so
VHOST_NEW_WORKER fails there.
What happens to a VM started in that window:
+----------------------------+---------------------------------------+
| VM | new QEMU on a 24.x kernel |
+----------------------------+---------------------------------------+
| no vhost-blk disks | not affected |
| vhost-blk, num-threads = 1 | starts: VHOST_SET_FORK_FROM_OWNER |
| (the QEMU default) | exists on 24.x, the worker becomes a |
| | vhost_task as on the new kernel |
| vhost-blk, num-threads > 1 | fails: VHOST_NEW_WORKER fails and |
| | there is no fallback, so start, |
| | restart and incoming migration fail |
| already running | not affected, old QEMU process |
+----------------------------+---------------------------------------+
So the window is the time between the package update and the reboot.
If the node stays in maintenance with all VMs moved away for the whole
update, nothing breaks in practice.
Questions:
1. Does our management stack (nova/libvirt with hw:use_vhostblk) ever
set num-threads > 1 for vhost-blk disks?
2. If it does, which way do we close the window: QEMU falls back to
VHOST_SET_NWORKERS when VHOST_NEW_WORKER fails, or the update
procedure guarantees that no VM starts on the node before the
reboot?
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-30 15:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:16 Alexander Ivanov
2026-11-26 11:34 ` Andrey Zhadchenko
2026-11-30 15:30 ` Konstantin Khorenko
2026-11-30 15:41 ` Konstantin Khorenko [this message]
2026-11-30 15:45 ` 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=179605328155.24505.11968521369586425911@virtuozzo.com \
--to=khorenko@virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=den@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox