From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 2C7BE1FF142 for ; Fri, 22 May 2026 15:21:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C1306B87D; Fri, 22 May 2026 15:21:24 +0200 (CEST) From: Arthur Bied-Charreton To: pve-devel@lists.proxmox.com Subject: [PATCH qemu/qemu-server 0/3] include Hyper-V enlightenment flags in CPU flags lists Date: Fri, 22 May 2026 15:21:19 +0200 Message-ID: <20260522132122.712794-1-a.bied-charreton@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.134 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: LZCOKWAXFRDV5AK6VWLICNZFITBLPCKX X-Message-ID-Hash: LZCOKWAXFRDV5AK6VWLICNZFITBLPCKX X-MailFrom: abied-charreton@jett.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: This series addresses two issues with CPU flag support detection. First, as reported on the forum [0], the Hyper-V enlightenment flags (hv-*) are always reported as unsupported. The temporary VM that query_supported_cpu_flags [1] queries is spawned with `-cpu host`, which by itself does not advertise those flags. The qemu-server commit fixes this by additionally enabling hv-passthrough on that VM when querying flags for KVM. Second, in the context of custom CPU models, the hv-* flags are not part of the base list at all, not even as unsupported, making it impossible to set them without editing cpu-models.conf manually (the VM-specific flags in the create wizard and processor edit window are unaffected, since they use a different base list [2]). That base list is generated from the `-cpu help` output at pve-qemu-kvm build time [3]. The first pve-qemu patch extends the parsing script to additionally query the hv-* flags via the qom-list-properties QMP command. The final pve-qemu patch pins the resulting flag list into the repository and fails the build on any divergence, as already done for CPU models. This makes sure flag additions are surfaced for review on QEMU bumps. The fixes can be applied independently. The qemu-server one is the most pressing, as it fixes the regression reported in the forum. [0] https://forum.proxmox.com/threads/incorrect-supported-cpu-flags.183722/#post-853902 [1] https://git.proxmox.com/?p=qemu-server.git;a=blob;f=src/PVE/QemuServer.pm;h=118f26bc94d9ee8e8c4c39a3d710e67c14f61bc0;hb=refs/heads/master#l2941 [2] https://git.proxmox.com/?p=qemu-server.git;a=blob;f=src/PVE/QemuServer/CPUFlags.pm;h=0d3206b2d3119c44a9dd9dd817b838767afbefd7;hb=refs/heads/master#l19 [3] https://git.proxmox.com/?p=pve-qemu.git;a=blob;f=debian/rules;h=c90db29b0f03568224b1c79431bce2b753283a4d;hb=refs/heads/master#l126 qemu-server: Arthur Bied-Charreton (1): cpu flags: include Hyper-V enlightenment flags in supported flags src/PVE/QemuServer.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) pve-qemu: Arthur Bied-Charreton (2): build: query Hyper-V enlightenment flags for CPU flags list build: fail when recognized CPU flags list changes debian/parse-cpu-flags.pl | 42 +++ debian/recognized-CPUID-flags-x86_64 | 412 +++++++++++++++++++++++++++ debian/rules | 6 +- 3 files changed, 459 insertions(+), 1 deletion(-) create mode 100644 debian/recognized-CPUID-flags-x86_64 Summary over all repositories: 4 files changed, 463 insertions(+), 2 deletions(-) -- Generated by murpp 0.11.0