]> git.proxmox.com Git - qemu-server.git/commit
Rework get_cpu_options and allow custom CPU models
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 7 Apr 2020 13:56:18 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 15:27:58 +0000 (17:27 +0200)
commitc4581b9cc558f573713ee0bb1c18bbc98341391c
treebbaf3d7f860b3527218785f8ddb3318c47988190
parent45619185a622e0116e8368eed74b9dcbd266dc39
Rework get_cpu_options and allow custom CPU models

If a cputype is custom (check via prefix), try to load options from the
custom CPU model config, and set values accordingly.

While at it, extract currently hardcoded values into seperate sub and add
reasonings.

Since the new flag resolving outputs flags in sorted order for
consistency, adapt the test cases to not break. Only the order is
changed, not which flags are present.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Reviewed-By: Fabian Ebner <f.ebner@proxmox.com>
Tested-By: Fabian Ebner <f.ebner@proxmox.com>
14 files changed:
PVE/QemuServer/CPUConfig.pm
test/cfg2cmd/efi-raw-old.conf.cmd
test/cfg2cmd/efi-raw.conf.cmd
test/cfg2cmd/i440fx-win10-hostpci.conf.cmd
test/cfg2cmd/minimal-defaults.conf.cmd
test/cfg2cmd/pinned-version.conf.cmd
test/cfg2cmd/q35-linux-hostpci-multifunction.conf.cmd
test/cfg2cmd/q35-linux-hostpci.conf.cmd
test/cfg2cmd/q35-win10-hostpci.conf.cmd
test/cfg2cmd/simple1.conf.cmd
test/cfg2cmd/spice-enhancments.conf.cmd
test/cfg2cmd/spice-linux-4.1.conf.cmd
test/cfg2cmd/spice-usb3.conf.cmd
test/cfg2cmd/spice-win.conf.cmd