]> git.proxmox.com Git - qemu-server.git/commit
Adapt CPUConfig to handle custom models
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 12 Feb 2020 15:11:22 +0000 (16:11 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Mar 2020 17:42:21 +0000 (18:42 +0100)
commitb3e894883a62783190d1f1bae752eab502999bb4
tree63a2f335e0b35b0538d716af034b4314e63474ef
parent404c90070d6f7d6931a82c98e34cfcecdbb99f50
Adapt CPUConfig to handle custom models

Turn CPUConfig into a SectionConfig with parsing/writing support for
custom CPU models. IO is handled using cfs.

Namespacing will be provided using "custom-" prefix for custom model
names (in VM config only, cpu-models.conf will contain unprefixed
names).

Includes two overrides to avoid writing redundant information to the
config file, additionally get_custom_model is used to retrieve a custom
model configuration by name.

Resolve custom names in print_cpu_device when a custom cpu is passed.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer/CPUConfig.pm