From: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH qemu-server] cpu models: only include custom models on x86_64
Date: Tue, 19 May 2026 09:51:09 +0200 [thread overview]
Message-ID: <20260519075109.156258-1-a.bied-charreton@proxmox.com> (raw)
The custom CPU models config does not currently expose a way to specify
an arch and it defaults to x86_64.
Only include custom models if $arch is set to x86_64 to prevent listing
x86_64-only custom models in the CPU model selector for arm VMs.
Signed-off-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
---
src/PVE/QemuServer/CPUConfig.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/QemuServer/CPUConfig.pm b/src/PVE/QemuServer/CPUConfig.pm
index 10f7729d..b037a34e 100644
--- a/src/PVE/QemuServer/CPUConfig.pm
+++ b/src/PVE/QemuServer/CPUConfig.pm
@@ -572,6 +572,8 @@ sub add_cpu_json_properties($prop) {
sub get_cpu_models($include_custom, $arch = undef) {
$arch //= get_host_arch();
+ $include_custom = 0 if $arch ne 'x86_64';
+
my $cpu_vendor_list = get_cpu_models_by_arch($arch);
my $models = [];
--
2.47.3
next reply other threads:[~2026-05-19 7:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 7:51 Arthur Bied-Charreton [this message]
2026-05-19 8:13 ` [PATCH qemu-server] cpu models: only include custom models on x86_64 Fiona Ebner
2026-05-19 8:17 ` Fiona Ebner
2026-05-19 8:46 ` Arthur Bied-Charreton
2026-05-19 8:18 ` Arthur Bied-Charreton
2026-05-19 9:06 ` superseded: " Arthur Bied-Charreton
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=20260519075109.156258-1-a.bied-charreton@proxmox.com \
--to=a.bied-charreton@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.