qemu-server/PVE
Stefan Reiter c4581b9cc5 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>
2020-04-07 17:27:58 +02:00
..
API2 Include "-cpu" parameter with snapshots/suspend 2020-04-07 17:27:58 +02:00
CLI Create Drive.pm and move drive-related code there 2020-03-07 18:23:57 +01:00
QemuServer Rework get_cpu_options and allow custom CPU models 2020-04-07 17:27:58 +02:00
VZDump vm_start: condense signature 2020-04-01 17:42:15 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm Include "-cpu" parameter with snapshots/suspend 2020-04-07 17:27:58 +02:00
QemuMigrate.pm Include "-cpu" parameter with live-migration 2020-04-07 17:27:58 +02:00
QemuServer.pm Include "-cpu" parameter with snapshots/suspend 2020-04-07 17:27:58 +02:00
QMPClient.pm Append newline to all QGA commands 2020-03-11 11:11:45 +01:00