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

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