Blame SOURCES/0004-Recognize-ppc64le-little-endian-virtualization-RHBZ-.patch

ba34c6
From 7db94c8fe63f2c7ec3ac27cc5ff54ec1e1686aeb Mon Sep 17 00:00:00 2001
ba34c6
From: "Richard W.M. Jones" <rjones@redhat.com>
ba34c6
Date: Tue, 17 Oct 2017 14:47:09 +0100
fcf72c
Subject: [PATCH 04/22] Recognize ppc64le (little endian) virtualization
ba34c6
 (RHBZ#1147876).
ba34c6
ba34c6
Tested by Laurent Vivier, see:
ba34c6
https://bugzilla.redhat.com/show_bug.cgi?id=1147876#c35 & ff.
ba34c6
---
ba34c6
 virt-what.in | 2 +-
ba34c6
 1 file changed, 1 insertion(+), 1 deletion(-)
ba34c6
ba34c6
diff --git a/virt-what.in b/virt-what.in
ba34c6
index 247348e..29b7b0d 100644
ba34c6
--- a/virt-what.in
ba34c6
+++ b/virt-what.in
ba34c6
@@ -339,7 +339,7 @@ fi
ba34c6
 # example /proc/ppc64/lparcfg systemtype line
ba34c6
 # system_type=IBM pSeries (emulated by qemu)
ba34c6
 
ba34c6
-if [ "$arch" = "ppc64" ]; then
ba34c6
+if [ "$arch" = "ppc64" ] || [ "$arch" = "ppc64le" ] ; then
ba34c6
     if have_cpuinfo && grep -q 'platform.**pSeries' "${root}/proc/cpuinfo"; then
ba34c6
         if grep -q 'model.*emulated by qemu' "${root}/proc/cpuinfo"; then
ba34c6
                 echo ibm_power-kvm
ba34c6
-- 
fcf72c
2.32.0
ba34c6