[pve-devel] [RFC 0/9] Unfinished: Custom CPU type API and GUI

Stefan Reiter s.reiter at proxmox.com
Thu Oct 28 13:41:41 CEST 2021


For someone to pick up, please :)

This is some rather old code I had lying around, rebased and slightly fixed up
to build. Doesn't currently work as intended, but gets somewhat close.

Includes the API (mostly stable AFAICT, only some stuff broken during the time
it was lying around) and the GUI (structure looks decent, but editor window is
bugged heavily).

The QEMU patch is necessary to query the CPU flags added by default CPU and
machine type combinations, it could also be exported the same way we do for the
"all recognized flags" file, but that would be quite many files and would have
to stay up-to-date with supported CPU models in QEMU.


 pve-qemu: Stefan Reiter (1):
  Add -list-flags command line option

 ...E-Add-list-flags-command-line-option.patch | 213 ++++++++++++++++++
 debian/patches/series                         |   1 +
 2 files changed, 214 insertions(+)
 create mode 100644 debian/patches/pve/0049-PVE-Add-list-flags-command-line-option.patch

 qemu-server: Stefan Reiter (3):
  api: add recognized-flags and supported-flags endpoints
  api: add /cpu/model/* get endpoint
  api: add /cpu/model/* get/create/delete/update endpoints

 PVE/API2/Qemu/CPU.pm        | 334 +++++++++++++++++++++++++++++++++++-
 PVE/QemuServer/CPUConfig.pm |  24 ++-
 2 files changed, 356 insertions(+), 2 deletions(-)

 manager: Stefan Reiter (5):
  gui: VMCPUFlagSelector: fix unknownFlags behaviour
  gui: CPUModelSelector: fix dirty state on default
  gui: CPUModelSelector: add 'allowCustom'
  gui: add basic custom CPU model editor
  Initial attempt at CPU flag editor for custom models

 www/css/ext6-pve.css                   |   4 +
 www/manager6/Makefile                  |   3 +
 www/manager6/dc/CPUTypeEdit.js         |  89 +++++++++++++++
 www/manager6/dc/CPUTypeView.js         | 148 +++++++++++++++++++++++++
 www/manager6/dc/Config.js              |   6 +
 www/manager6/form/CPUModelSelector.js  |  22 ++++
 www/manager6/form/PhysBitsSelector.js  | 128 +++++++++++++++++++++
 www/manager6/form/VMCPUFlagSelector.js | 127 ++++++++++++++++-----
 8 files changed, 501 insertions(+), 26 deletions(-)
 create mode 100644 www/manager6/dc/CPUTypeEdit.js
 create mode 100644 www/manager6/dc/CPUTypeView.js
 create mode 100644 www/manager6/form/PhysBitsSelector.js

-- 
2.30.2





More information about the pve-devel mailing list