thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-RHEL-only-tests-avocado-Switch-aarch64-tests-from-a5.patch

586cba
From d710394f68eb0b6116dd8ac76f619c192e0d5972 Mon Sep 17 00:00:00 2001
586cba
From: Andrew Jones <drjones@redhat.com>
586cba
Date: Wed, 15 Jun 2022 15:28:27 +0200
586cba
Subject: [PATCH 02/18] RHEL-only: tests/avocado: Switch aarch64 tests from a53
586cba
 to a57
586cba
MIME-Version: 1.0
586cba
Content-Type: text/plain; charset=UTF-8
586cba
Content-Transfer-Encoding: 8bit
586cba
586cba
RH-Author: Daniel P. Berrangé <berrange@redhat.com>
586cba
RH-MergeRequest: 94: i386, aarch64, s390x: deprecate many named CPU models
586cba
RH-Commit: [2/6] e85ef69b42c411a6997e4da10ba05176368769b3 (berrange/centos-src-qemu)
586cba
RH-Bugzilla: 2060839
586cba
RH-Acked-by: Thomas Huth <thuth@redhat.com>
586cba
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
586cba
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
586cba
586cba
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2066824
586cba
Upstream Status: RHEL only
586cba
586cba
We plan to remove the cortex-a53 from the supported cpu types. Switch
586cba
all avocado tests that use it to the cortex-a57, which will work the
586cba
same and we intend to keep. We don't want to try and upstream this
586cba
change since the better upstream change would be to switch from the
586cba
a53 to 'max', but the upstream tests also need to use later guest
586cba
kernels to use 'max' (see qemu upstream commit 0942820408dc
586cba
("hw/arm/virt: Disable LPA2 for -machine virt-6.2")
586cba
586cba
Signed-off-by: Andrew Jones <drjones@redhat.com>
586cba
---
586cba
 tests/avocado/replay_kernel.py     | 2 +-
586cba
 tests/avocado/reverse_debugging.py | 2 +-
586cba
 tests/avocado/tcg_plugins.py       | 6 +++---
586cba
 3 files changed, 5 insertions(+), 5 deletions(-)
586cba
586cba
diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
586cba
index 0b2b0dc692..3a7b5f0748 100644
586cba
--- a/tests/avocado/replay_kernel.py
586cba
+++ b/tests/avocado/replay_kernel.py
586cba
@@ -147,7 +147,7 @@ def test_aarch64_virt(self):
586cba
         """
586cba
         :avocado: tags=arch:aarch64
586cba
         :avocado: tags=machine:virt
586cba
-        :avocado: tags=cpu:cortex-a53
586cba
+        :avocado: tags=cpu:cortex-a57
586cba
         """
586cba
         kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
586cba
                       '/linux/releases/29/Everything/aarch64/os/images/pxeboot'
586cba
diff --git a/tests/avocado/reverse_debugging.py b/tests/avocado/reverse_debugging.py
586cba
index d2921e70c3..66d185ed42 100644
586cba
--- a/tests/avocado/reverse_debugging.py
586cba
+++ b/tests/avocado/reverse_debugging.py
586cba
@@ -198,7 +198,7 @@ def test_aarch64_virt(self):
586cba
         """
586cba
         :avocado: tags=arch:aarch64
586cba
         :avocado: tags=machine:virt
586cba
-        :avocado: tags=cpu:cortex-a53
586cba
+        :avocado: tags=cpu:cortex-a57
586cba
         """
586cba
         kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
586cba
                       '/linux/releases/29/Everything/aarch64/os/images/pxeboot'
586cba
diff --git a/tests/avocado/tcg_plugins.py b/tests/avocado/tcg_plugins.py
586cba
index 642d2e49e3..93b3afd823 100644
586cba
--- a/tests/avocado/tcg_plugins.py
586cba
+++ b/tests/avocado/tcg_plugins.py
586cba
@@ -68,7 +68,7 @@ def test_aarch64_virt_insn(self):
586cba
         :avocado: tags=accel:tcg
586cba
         :avocado: tags=arch:aarch64
586cba
         :avocado: tags=machine:virt
586cba
-        :avocado: tags=cpu:cortex-a53
586cba
+        :avocado: tags=cpu:cortex-a57
586cba
         """
586cba
         kernel_path = self._grab_aarch64_kernel()
586cba
         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
586cba
@@ -94,7 +94,7 @@ def test_aarch64_virt_insn_icount(self):
586cba
         :avocado: tags=accel:tcg
586cba
         :avocado: tags=arch:aarch64
586cba
         :avocado: tags=machine:virt
586cba
-        :avocado: tags=cpu:cortex-a53
586cba
+        :avocado: tags=cpu:cortex-a57
586cba
         """
586cba
         kernel_path = self._grab_aarch64_kernel()
586cba
         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
586cba
@@ -120,7 +120,7 @@ def test_aarch64_virt_mem_icount(self):
586cba
         :avocado: tags=accel:tcg
586cba
         :avocado: tags=arch:aarch64
586cba
         :avocado: tags=machine:virt
586cba
-        :avocado: tags=cpu:cortex-a53
586cba
+        :avocado: tags=cpu:cortex-a57
586cba
         """
586cba
         kernel_path = self._grab_aarch64_kernel()
586cba
         kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
586cba
-- 
586cba
2.35.3
586cba