5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-08 04:58:26 +03:00

Fixup CPU flag query to not use get_basic_machine_info

get_basic_machine_info was removed by commit 045749f2fc.

Use get_host_arch to get the default machine type instead, and
optionally allow to specify architecture as parameter.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2020-01-15 15:36:54 +01:00 committed by Thomas Lamprecht
parent 990b65ab60
commit 52cffab6b5

View File

@ -3418,9 +3418,12 @@ sub get_command_for_arch($) {
# since kvm and tcg machines support different flags
#
sub query_supported_cpu_flags {
my $flags = {};
my ($arch) = @_;
my ($arch, $default_machine) = get_basic_machine_info();
$arch //= get_host_arch();
my $default_machine = $default_machines->{$arch};
my $flags = {};
# FIXME: Once this is merged, the code below should work for ARM as well:
# https://lists.nongnu.org/archive/html/qemu-devel/2019-06/msg04947.html