Re: [PATCH qemu-server v4 06/17] cpu: register standard option for CPU format

Fiona Ebner
2026-05-07T12:11:53Z

Am 30.04.26 um 6:00 PM schrieb Arthur Bied-Charreton:
> Expose $cpu_fmt as a standard option to allow using it in endpoint
> definitions.
>
> Signed-off-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
> ---
> src/PVE/QemuServer/CPUConfig.pm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/PVE/QemuServer/CPUConfig.pm b/src/PVE/QemuServer/CPUConfig.pm
> index 65ced94f..78603acc 100644
> --- a/src/PVE/QemuServer/CPUConfig.pm
> +++ b/src/PVE/QemuServer/CPUConfig.pm
> @@ -344,6 +344,7 @@ my $cpu_fmt = {
> optional => 1,
> },
> };
> +PVE::JSONSchema::register_standard_option('pve-qemu-cpu', $cpu_fmt);

I wanted to say: all the others for QEMU use pve-qm-*, so we should
stick to that. But actually, there already is pve-qemu-machine as an
exception, so meh. Might still be better to stick to the more common prefix.

>
> my $sev_fmt = {
> type => {