all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH qemu-server] cpu models: only include custom models on x86_64
@ 2026-05-19  7:51 Arthur Bied-Charreton
  2026-05-19  8:13 ` Fiona Ebner
  2026-05-19  9:06 ` superseded: " Arthur Bied-Charreton
  0 siblings, 2 replies; 6+ messages in thread
From: Arthur Bied-Charreton @ 2026-05-19  7:51 UTC (permalink / raw)
  To: pve-devel

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




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-19  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19  7:51 [PATCH qemu-server] cpu models: only include custom models on x86_64 Arthur Bied-Charreton
2026-05-19  8:13 ` 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

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal