From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 7223A7A004 for ; Thu, 28 Oct 2021 13:42:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 699251F938 for ; Thu, 28 Oct 2021 13:41:58 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 034331F905 for ; Thu, 28 Oct 2021 13:41:57 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id C7BA6469AE for ; Thu, 28 Oct 2021 13:41:56 +0200 (CEST) From: Stefan Reiter To: pve-devel@lists.proxmox.com Date: Thu, 28 Oct 2021 13:41:41 +0200 Message-Id: <20211028114150.3245864-1-s.reiter@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.458 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [cpu.pm, cpuconfig.pm] Subject: [pve-devel] [RFC 0/9] Unfinished: Custom CPU type API and GUI X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2021 11:42:28 -0000 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