qemu-server/PVE
Stefan Reiter 05a4c550f3 Add QEMU CPU flag querying helpers
* query_understood_cpu_flags returns all flags that QEMU/KVM knows about
* query_supported_cpu_flags returns all flags that QEMU/KVM can use on
  this particular host.

To get supported flags, a temporary VM is started with QEMU, so we can
issue the "query-cpu-model-expansion" QMP command. This is how libvirt
queries supported flags for its "host-passthrough" CPU type.
query_supported_cpu_flags is thus rather slow and shouldn't be called
unnecessarily.

Note that KVM and TCG accelerators provide different expansions for the
"host" CPU type, so we need to query both.

Currently only supports x86_64, because QEMU-aarch64 doesn't provide the
necessary querying functions.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-01-14 11:56:21 +01:00
..
API2 vmconfig_apply_pending: add error handling 2020-01-14 11:50:34 +01:00
CLI refactor: create QemuServer::Monitor for high-level QMP access 2019-11-20 16:29:23 +01:00
QemuServer mon_cmd: add explicit return 2019-11-30 17:24:55 +01:00
VZDump vzdump: log QGA FS freeze/thaw try in task log 2019-11-27 20:20:30 +01:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm refactor finding of vmstate storage 2019-12-11 09:02:55 +01:00
QemuMigrate.pm Remove unused 'sharedvm' variable 2020-01-09 17:43:51 +01:00
QemuServer.pm Add QEMU CPU flag querying helpers 2020-01-14 11:56:21 +01:00
QMPClient.pm refactor: create QemuServer::Helpers and move file/dir code 2019-11-20 16:29:23 +01:00