From: Jonas Theisen <j.theisen@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH docs v3 6/6] qm: document hv-reenlightenment and invtsc
Date: Mon, 30 Nov 2026 19:34:13 +0100 [thread overview]
Message-ID: <20261130183418.617530-7-j.theisen@proxmox.com> (raw)
In-Reply-To: <20261130183418.617530-1-j.theisen@proxmox.com>
Explain what the new 'hv-reenlightenment' CPU flag is for, that guests
only use it together with 'hv-frequencies', and that custom CPU types
with 'invtsc' can now be live migrated. Both flags restrict the nodes a
VM can be live migrated to, as the target's TSC frequency must be
compatible, so add this to the live migrations that are refused.
Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
---
qm.adoc | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/qm.adoc b/qm.adoc
index 102966b..7a08391 100644
--- a/qm.adoc
+++ b/qm.adoc
@@ -571,6 +571,18 @@ listings, `Mapping.Modify` gates create/update/delete in the panel, and
enforced on VM create, VM update, and VM clone, so a user who can clone a VM
that uses a custom model still needs `Mapping.Use` on that model's ACL path.
+Custom CPU types can enable the invariant TSC flag `invtsc`, which guests need
+to rely on the TSC as clock source, for example for applications reading it
+directly or for nested hypervisors. The host CPU must have an invariant TSC as
+well. For CPU types based on `host`, QEMU otherwise starts the VM without the
+flag and only logs a warning. {pve} sets the TSC frequency of such VMs to the
+frequency of the host they are started on, as QEMU requires it for live
+migration, snapshots including RAM, and hibernation. Such a VM can only be live
+migrated to nodes that support `invtsc`, and either support TSC scaling or
+have a TSC frequency within 250 ppm of the VM's. VMs that were started without
+an explicit TSC frequency, for example before an update, need to be restarted
+before they can be live migrated.
+
[[qm_meltdown_spectre]]
Meltdown / Spectre related CPU flags
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -699,6 +711,16 @@ guests on recent Intel hardware:
only applies for x86_64 vCPUs; it is silently ignored on other
architectures.
+* The `hv-reenlightenment` flag notifies nested Hyper-V guests, for example
+ Windows with WSL2 or virtualization-based security enabled, about changes of
+ the TSC frequency from live migrations. Together with the `hv-frequencies`
+ flag, which custom CPU types can enable, this lets them keep a stable clock
+ source for their own guests across live migrations. Without it, guests do
+ not use the notifications. {pve} sets the TSC frequency of VMs with
+ `hv-reenlightenment` to the frequency of the host they are started on. Such
+ a VM can only be live migrated to nodes that support TSC scaling, or whose
+ TSC frequency is within 250 ppm of the VM's.
+
NUMA
^^^^
@@ -1878,6 +1900,8 @@ For Live Migration to work, there are some things required:
type, to a node that does not support all flags of the VM's virtual CPU,
including the flags the CPU type enables by default. QEMU would refuse to
start the VM on such a node.
+** VMs with the `hv-reenlightenment` or `invtsc` CPU flag to a node with an
+ incompatible TSC frequency.
--
+
The migration dialog and `qm migrate` show the reason, and migrating all VMs
--
2.47.3
next prev parent reply other threads:[~2026-11-30 18:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 18:34 [PATCH docs/qemu-server v3 0/6] live migrate VMs with an invariant TSC or re-enlightenment Jonas Theisen
2026-11-30 18:34 ` [PATCH qemu-server v3 1/6] cpu flags: report invtsc support of nodes Jonas Theisen
2026-11-30 18:34 ` [PATCH qemu-server v3 2/6] helpers: add helper to query the host's TSC frequency and scaling support Jonas Theisen
2026-11-30 18:34 ` [PATCH qemu-server v3 3/6] cpu config: add hv-reenlightenment flag and set TSC frequency for it Jonas Theisen
2026-11-30 18:34 ` [PATCH qemu-server v3 4/6] migrate: block migration to nodes with incompatible TSC for re-enlightenment Jonas Theisen
2026-11-30 18:34 ` [PATCH qemu-server v3 5/6] cpu config: set TSC frequency for invtsc to allow live migration Jonas Theisen
2026-11-30 18:34 ` Jonas Theisen [this message]
2026-11-30 18:36 ` [PATCH docs/qemu-server v3 0/6] live migrate VMs with an invariant TSC or re-enlightenment Jonas Theisen
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=20261130183418.617530-7-j.theisen@proxmox.com \
--to=j.theisen@proxmox.com \
--cc=pve-devel@lists.proxmox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox