[pve-devel] [PATCH qemu-server v2 04/18] helpers: improve name for variable for mapping arch to binary

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jan 17 13:19:15 CET 2025


Am 16.01.25 um 12:50 schrieb Fiona Ebner:
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
>  PVE/QemuServer/Helpers.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/QemuServer/Helpers.pm b/PVE/QemuServer/Helpers.pm
> index d58bad2b..be10a92a 100644
> --- a/PVE/QemuServer/Helpers.pm
> +++ b/PVE/QemuServer/Helpers.pm
> @@ -19,7 +19,7 @@ windows_version
>  
>  my $nodename = PVE::INotify::nodename();
>  
> -my $Arch2Qemu = {
> +my $arch_to_qemu_binary = {
>      aarch64 => '/usr/bin/qemu-system-aarch64',
>      x86_64 => '/usr/bin/qemu-system-x86_64',
>  };
> @@ -27,7 +27,7 @@ sub get_command_for_arch($) {
>      my ($arch) = @_;
>      return '/usr/bin/kvm' if get_host_arch() eq $arch; # i.e. native arch
>  
> -    my $cmd = $Arch2Qemu->{$arch}
> +    my $cmd = $arch_to_qemu_binary->{$arch}
>  	or die "don't know how to emulate architecture '$arch'\n";
>      return $cmd;
>  }

could be squashed into the previous patch.




More information about the pve-devel mailing list