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 33AE51FF13F for ; Thu, 29 Jan 2026 15:11:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 19EBC70B9; Thu, 29 Jan 2026 15:12:12 +0100 (CET) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [PATCH qemu 1/3] buildsys: generate list of supported aarch64 machines during package build Date: Thu, 29 Jan 2026 15:09:53 +0100 Message-ID: <20260129141132.163858-2-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260129141132.163858-1-f.ebner@proxmox.com> References: <20260129141132.163858-1-f.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1769695828624 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 Message-ID-Hash: UCLOAEKD5FQQTM3ZNBWCA2ULPIZCXMN3 X-Message-ID-Hash: UCLOAEKD5FQQTM3ZNBWCA2ULPIZCXMN3 X-MailFrom: f.ebner@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: Similar to what is already done for x86_64. Signed-off-by: Fiona Ebner --- debian/parse-machines.pl | 2 +- debian/rules | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/parse-machines.pl b/debian/parse-machines.pl index a0f449c..a6c0e8d 100755 --- a/debian/parse-machines.pl +++ b/debian/parse-machines.pl @@ -14,7 +14,7 @@ while () { s/^\s+//; my @machine = split(/\s+/); - next if $machine[0] !~ m/^pc-(i440fx|q35)-(.+)$/; + next if $machine[0] !~ m/^pc-(i440fx|q35)-(.+)$/ && $machine[0] !~ m/^(virt)-(.+)$/; push @$machines, { 'id' => $machine[0], 'type' => $1, diff --git a/debian/rules b/debian/rules index 7c08331..c407172 100755 --- a/debian/rules +++ b/debian/rules @@ -10,7 +10,9 @@ PACKAGE=pve-qemu-kvm destdir := $(CURDIR)/debian/$(PACKAGE) flagfile := $(destdir)/usr/share/kvm/recognized-CPUID-flags-x86_64 -machinefile := $(destdir)/usr/share/kvm/machine-versions-x86_64.json + +machine_file_x86_64 := $(destdir)/usr/share/kvm/machine-versions-x86_64.json +machine_file_aarch64 := $(destdir)/usr/share/kvm/machine-versions-aarch64.json # default QEMU out-of-tree build directory is ./build BUILDDIR=build @@ -119,7 +121,10 @@ install: build # CPU flags are static for QEMU version, allows avoiding more costly checks $(destdir)/usr/bin/qemu-system-x86_64 -cpu help | ./debian/parse-cpu-flags.pl > $(flagfile) - $(destdir)/usr/bin/qemu-system-x86_64 -machine help | ./debian/parse-machines.pl > $(machinefile) + + # Supported machine versions are static for a given QEMU binary. + $(destdir)/usr/bin/qemu-system-x86_64 -machine help | ./debian/parse-machines.pl > $(machine_file_x86_64) + $(destdir)/usr/bin/qemu-system-aarch64 -machine help | ./debian/parse-machines.pl > $(machine_file_aarch64) # Build architecture-independent files here. binary-indep: build install -- 2.47.3