From: Erik Fastermann <e.fastermann@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Erik Fastermann <e.fastermann@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 [thread overview]
Message-ID: <20260831101747.160326-1-e.fastermann@proxmox.com> (raw)
'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 <e.fastermann@proxmox.com>
---
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
reply other threads:[~2026-08-31 10:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260831101747.160326-1-e.fastermann@proxmox.com \
--to=e.fastermann@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.