all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager/proxmox{,-yew-comp}/qemu-server v2 0/4] load VM-specific CPU flags from the remote
@ 2026-11-30 14:10 Arthur Bied-Charreton
  2026-11-30 14:10 ` [PATCH qemu-server v2 1/4] api: cpu flags: proxy the request to the given node Arthur Bied-Charreton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Arthur Bied-Charreton @ 2026-11-30 14:10 UTC (permalink / raw)
  To: pdm-devel

The CPU editor in PDM offers a hardcoded list of VM-specific CPU flags
which has fallen behind qemu-server.

Since qemu-server 9.0.26 and pve-manager 9.0.12, PVE has an endpoint
listing these flags. This series adds that call to pve-api-types,
proxies it to PDM and makes the editor load the flags from the guest's
node.

If the node does not have the endpoint, the editor falls back to the
hardcoded list. Other errors are shown.

The flag descriptions now come from qemu-server and are therefore no
longer translated, except on the fallback path.

Note that currently the only symptom this fixes is the missing
nested-virt flag, if preferred we could also just add that to the
hardcoded list as a stopgap to limit churn.

Changes since v1:
- new qemu-server patch to proxy the endpoint to the given node
- PDM: require Resource.Audit on anything below the remote instead of
  on the node, which matches PVE's user => 'all' while not allowing
  users to probe remotes they have no access to
- UI: pass the guest's arch if set, reload when it changes
- UI: return an empty fallback list for non-x86 guests
- UI: retry fetching the flags without arch if the request returns 400
  to handle pre-arch nodes
- UI: show a loading mask and a text for an empty list
- UI: only fall back on 501, show 404 (e.g. removed remote) as an error

Build dependencies:
- proxmox-datacenter-manager requires bumped pve-api-types
- proxmox-yew-comp requires bumped pve-api-types


qemu-server:

Arthur Bied-Charreton (1):
  api: cpu flags: proxy the request to the given node

 src/PVE/API2/Qemu/CPUFlags.pm | 1 +
 1 file changed, 1 insertion(+)


proxmox:

Arthur Bied-Charreton (1):
  pve-api-types: add VM-specific CPU flags endpoint

 pve-api-types/generate.pl            |   1 +
 pve-api-types/src/generated/code.rs  |  30 +++++-
 pve-api-types/src/generated/types.rs | 140 ++++++++++++++++++++-------
 3 files changed, 133 insertions(+), 38 deletions(-)


datacenter-manager:

Arthur Bied-Charreton (1):
  api: pve: add VM-specific CPU flags endpoint

 server/src/api/pve/node.rs | 64 ++++++++++++++++++++++++++++++++++++--
 1 file changed, 61 insertions(+), 3 deletions(-)


proxmox-yew-comp:

Arthur Bied-Charreton (1):
  qemu: cpu flags: load the CPU flags from the node

 .../pve/qemu_hardware_panel/mobile.rs         |   6 +-
 src/form/pve/qemu_cpu_flags_list.rs           | 192 ++++++++++++++----
 .../qemu_property/qemu_processor_property.rs  |  26 ++-
 3 files changed, 182 insertions(+), 42 deletions(-)


Summary over all repositories:
  8 files changed, 377 insertions(+), 83 deletions(-)

-- 
Generated by murpp 0.12.1




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

end of thread, other threads:[~2026-11-30 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 14:10 [PATCH datacenter-manager/proxmox{,-yew-comp}/qemu-server v2 0/4] load VM-specific CPU flags from the remote Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH qemu-server v2 1/4] api: cpu flags: proxy the request to the given node Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH proxmox v2 2/4] pve-api-types: add VM-specific CPU flags endpoint Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH datacenter-manager v2 3/4] api: pve: " Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH proxmox-yew-comp v2 4/4] qemu: cpu flags: load the CPU flags from the node 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