From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id A08801FF09B for ; Mon, 31 Aug 2026 12:17:57 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id E88712126C; Mon, 31 Aug 2026 12:17:56 +0200 (CEST) From: Erik Fastermann To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server] fix #7981: cpu flags: Hyper-V enlightenments on x86_64 only Date: Mon, 31 Aug 2026 12:17:46 +0200 Message-ID: <20260831101747.160326-1-e.fastermann@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.534 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) KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 1.274 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: SL76UY6XYDCETLW4BN4LARSY7MGDRZSV X-Message-ID-Hash: SL76UY6XYDCETLW4BN4LARSY7MGDRZSV X-MailFrom: efastermann@ruth.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 CC: Erik Fastermann X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 'hv-passthrough' is x86-only, so QEMU's ARM target rejects it with "Parameter 'model.props.hv-passthrough' is unexpected". The whole expansion then fails, leaving pvestatd unable to populate the cpuflags-kvm node key on aarch64 hosts. Guard with the arch to prevent this. Fixes: 698550c2 ("cpu flags: include Hyper-V enlightenment flags in supported flags") Signed-off-by: Erik Fastermann --- src/PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm index 63d8c135..0e3ab288 100644 --- a/src/PVE/QemuServer.pm +++ b/src/PVE/QemuServer.pm @@ -3023,7 +3023,7 @@ sub query_supported_cpu_flags { die "QEMU flag querying VM exited with code " . $rc if $rc; my $model = { name => $kvm ? 'host' : 'max' }; - $model->{props} = { 'hv-passthrough' => JSON::true } if $kvm; + $model->{props} = { 'hv-passthrough' => JSON::true } if $kvm && $arch eq 'x86_64'; eval { my $cmd_result = mon_cmd( -- 2.47.3