Bug 50005 - pve-qemu-server: устаревший патч qemu-server-aarch64.patch
Summary: pve-qemu-server: устаревший патч qemu-server-aarch64.patch
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: pve-qemu-server (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-12 08:05 MSK by Vitaly Lipatov
Modified: 2024-04-12 13:00 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2024-04-12 08:05:18 MSK
# rpm -qf /usr/share/perl5/PVE/QemuServer.pm
pve-qemu-server-8.1.1-alt1.x86_64

Ошибка в PVE:

TASK ERROR: Undefined subroutine &PVE::QemuServer::is_native called at /usr/share/perl5/PVE/QemuServer.pm line 4080.


commit 961ca28b35695eefd890c4f259df1b6a86d1140f
Author: Alexey Shabalin <shaba@altlinux.org>
Date:   Wed Mar 9 17:56:18 2022 +0300

    apply qemu-server-aarch64.patch

...
@@ -3274,7 +3274,7 @@ my $Arch2Qemu = {
 };
 sub get_command_for_arch($) {
     my ($arch) = @_;
-    return '/usr/bin/kvm' if is_native($arch);
+#    return '/usr/bin/kvm' if is_native($arch);
 
     my $cmd = $Arch2Qemu->{$arch}
        or die "don't know how to emulate architecture '$arch'\n";
@@ -4008,7 +4008,9 @@ sub config_to_command {
        }
     }
 
-    if (!$kvm) {
+    if ($kvm && is_native($arch)) {
+       push @$machineFlags, 'accel=kvm';
+    } else {


В общем коде имеется только is_native_arch
Comment 1 Repository Robot 2024-04-12 13:00:04 MSK
pve-qemu-server-8.1.1-alt2 -> sisyphus:

 Fri Apr 12 2024 Andrew A. Vasilyev <andy@altlinux> 8.1.1-alt2
 - fix merge error with is_native_arch() (ALT #50005)