mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-13 18:18:22 +00: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:
parent
990b65ab60
commit
52cffab6b5
@ -3418,9 +3418,12 @@ sub get_command_for_arch($) {
|
|||||||
# since kvm and tcg machines support different flags
|
# since kvm and tcg machines support different flags
|
||||||
#
|
#
|
||||||
sub query_supported_cpu_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:
|
# 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
|
# https://lists.nongnu.org/archive/html/qemu-devel/2019-06/msg04947.html
|
||||||
|
Loading…
Reference in New Issue
Block a user