From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 073851FF0B7 for ; Mon, 30 Nov 2026 19:35:12 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4E28B21714; Mon, 30 Nov 2026 19:34:50 +0100 (CET) From: Jonas Theisen 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 Message-ID: <20261130183418.617530-7-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130183418.617530-1-j.theisen@proxmox.com> References: <20261130183418.617530-1-j.theisen@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796063671125 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.058 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: JHYZ5RDWMLTIKJKZSHICSVFSKBWK4PP3 X-Message-ID-Hash: JHYZ5RDWMLTIKJKZSHICSVFSKBWK4PP3 X-MailFrom: j.theisen@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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