From: Fiona Ebner <f.ebner@proxmox.com>
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 [thread overview]
Message-ID: <20260129141132.163858-2-f.ebner@proxmox.com> (raw)
In-Reply-To: <20260129141132.163858-1-f.ebner@proxmox.com>
Similar to what is already done for x86_64.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
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 (<STDIN>) {
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
next prev parent reply other threads:[~2026-01-29 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 14:09 [PATCH-SERIES qemu/qemu-server 0/3] api: machines: allow querying machines for a given architecture Fiona Ebner
2026-01-29 14:09 ` Fiona Ebner [this message]
2026-01-29 14:09 ` [PATCH qemu-server 2/3] cpu config: introduce pve-qm-cpu-arch standard option for virtual CPU architecture Fiona Ebner
2026-01-29 14:09 ` [PATCH qemu-server 3/3] api: machines: allow querying machines for a given architecture Fiona Ebner
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=20260129141132.163858-2-f.ebner@proxmox.com \
--to=f.ebner@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox