<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>50005</bug_id>
          
          <creation_ts>2024-04-12 08:05:18 +0300</creation_ts>
          <short_desc>pve-qemu-server: устаревший патч qemu-server-aarch64.patch</short_desc>
          <delta_ts>2024-04-12 13:00:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>pve-qemu-server</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>andy</cc>
    
    <cc>darisishe</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>244611</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2024-04-12 08:05:18 +0300</bug_when>
    <thetext># rpm -qf /usr/share/perl5/PVE/QemuServer.pm
pve-qemu-server-8.1.1-alt1.x86_64

Ошибка в PVE:

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


commit 961ca28b35695eefd890c4f259df1b6a86d1140f
Author: Alexey Shabalin &lt;shaba@altlinux.org&gt;
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 &apos;/usr/bin/kvm&apos; if is_native($arch);
+#    return &apos;/usr/bin/kvm&apos; if is_native($arch);
 
     my $cmd = $Arch2Qemu-&gt;{$arch}
        or die &quot;don&apos;t know how to emulate architecture &apos;$arch&apos;\n&quot;;
@@ -4008,7 +4008,9 @@ sub config_to_command {
        }
     }
 
-    if (!$kvm) {
+    if ($kvm &amp;&amp; is_native($arch)) {
+       push @$machineFlags, &apos;accel=kvm&apos;;
+    } else {


В общем коде имеется только is_native_arch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244633</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-04-12 13:00:04 +0300</bug_when>
    <thetext>pve-qemu-server-8.1.1-alt2 -&gt; sisyphus:

 Fri Apr 12 2024 Andrew A. Vasilyev &lt;andy@altlinux&gt; 8.1.1-alt2
 - fix merge error with is_native_arch() (ALT #50005)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>