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

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