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 86E811FF139 for ; Tue, 27 Jan 2026 17:15:43 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id F228A98F; Tue, 27 Jan 2026 17:16:04 +0100 (CET) From: Fiona Ebner To: pve-devel@lists.proxmox.com Date: Tue, 27 Jan 2026 17:15:01 +0100 Message-ID: <20260127161558.225510-4-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260127161558.225510-1-f.ebner@proxmox.com> References: <20260127161558.225510-1-f.ebner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1769530496860 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.017 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH qemu-server 3/3] query cpu flags: support aarch64 host X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Note that for ARM, the 'host' model can only be queried when it is also used on the commandline. This doesn't change the result for x86_64 either. The mentioned commit for ARM in the FIXME has long been merged in QEMU as e19afd5667 ("target/arm/monitor: Introduce qmp_query_cpu_model_expansion"). Signed-off-by: Fiona Ebner --- src/PVE/QemuServer.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm index 9ab25c49..1b49e9fd 100644 --- a/src/PVE/QemuServer.pm +++ b/src/PVE/QemuServer.pm @@ -2945,11 +2945,6 @@ sub query_supported_cpu_flags { my $flags = {}; - # FIXME: Once this is merged, the code below should work for ARM as well: - # https://lists.nongnu.org/archive/html/qemu-devel/2019-06/msg04947.html - die "QEMU/KVM cannot detect CPU flags on ARM (aarch64)\n" - if $arch eq "aarch64"; - my $kvm_supported = defined(kvm_version()) && $arch eq $host_arch; my $qemu_cmd = PVE::QemuServer::Helpers::get_command_for_arch($arch); my $fakevmid = -1; @@ -2978,6 +2973,8 @@ sub query_supported_cpu_flags { if (!$kvm) { push @$cmd, '-accel', 'tcg'; + } else { + push @$cmd, '-cpu', 'host'; } my $rc = run_command($cmd, noerr => 1, quiet => 0); -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel