From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH qemu-server 2/3] cpu config: introduce pve-qm-cpu-arch standard option for virtual CPU architecture
Date: Thu, 29 Jan 2026 15:09:54 +0100 [thread overview]
Message-ID: <20260129141132.163858-3-f.ebner@proxmox.com> (raw)
In-Reply-To: <20260129141132.163858-1-f.ebner@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/QemuServer.pm | 7 +------
src/PVE/QemuServer/CPUConfig.pm | 7 +++++++
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 341b4321..dae72c40 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -637,12 +637,7 @@ EODESCR
. ' This is used internally for snapshots.',
},
machine => get_standard_option('pve-qemu-machine'),
- arch => {
- description => "Virtual processor architecture. Defaults to the host.",
- optional => 1,
- type => 'string',
- enum => [qw(x86_64 aarch64)],
- },
+ arch => get_standard_option('pve-qm-cpu-arch', { optional => 1 }),
smbios1 => {
description => "Specify SMBIOS type 1 fields.",
type => 'string',
diff --git a/src/PVE/QemuServer/CPUConfig.pm b/src/PVE/QemuServer/CPUConfig.pm
index ec418e73..6240807b 100644
--- a/src/PVE/QemuServer/CPUConfig.pm
+++ b/src/PVE/QemuServer/CPUConfig.pm
@@ -25,6 +25,13 @@ our @EXPORT_OK = qw(
get_cvm_type
);
+my $arch_desc = {
+ description => "Virtual processor architecture. Defaults to the host architecture.",
+ type => 'string',
+ enum => [qw(x86_64 aarch64)],
+};
+PVE::JSONSchema::register_standard_option("pve-qm-cpu-arch", $arch_desc);
+
# under certain race-conditions, this module might be loaded before pve-cluster
# has started completely, so ensure we don't prevent the FUSE mount with our dir
if (PVE::Cluster::check_cfs_is_mounted(1)) {
--
2.47.3
next prev parent reply other threads:[~2026-01-29 14:11 UTC|newest]
Thread overview: 5+ 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 ` [PATCH qemu 1/3] buildsys: generate list of supported aarch64 machines during package build Fiona Ebner
2026-01-29 14:09 ` Fiona Ebner [this message]
2026-01-29 14:09 ` [PATCH qemu-server 3/3] api: machines: allow querying machines for a given architecture Fiona Ebner
2026-02-03 14:55 ` [PATCH-SERIES qemu/qemu-server 0/3] " Dominik Csapak
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-3-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 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.