[pve-devel] applied: [PATCH v6 qemu-server 02/12] Add QEMU CPU flag querying helpers
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Jan 14 11:59:06 CET 2020
On 11/21/19 3:53 PM, Stefan Reiter wrote:
> * 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 at proxmox.com>
> ---
> PVE/QemuServer.pm | 118 +++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 117 insertions(+), 1 deletion(-)
>
applied
More information about the pve-devel
mailing list