Blame SOURCES/0078-ppc64le-Don-t-use-cpu-parameter-under-any-circumstan.patch

e9bfca
From 815c29f1f90dcd96e91ecf80954db5ff409ddb1f Mon Sep 17 00:00:00 2001
e9bfca
From: "Richard W.M. Jones" <rjones@redhat.com>
e9bfca
Date: Tue, 28 Aug 2018 12:59:06 +0100
e9bfca
Subject: [PATCH] ppc64le: Don't use -cpu parameter under any circumstances
e9bfca
 (RHBZ#1605071).
e9bfca
e9bfca
---
e9bfca
 lib/appliance-cpu.c | 3 +++
e9bfca
 1 file changed, 3 insertions(+)
e9bfca
e9bfca
diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c
e9bfca
index a6c1b0faf..fa1bae3f9 100644
e9bfca
--- a/lib/appliance-cpu.c
e9bfca
+++ b/lib/appliance-cpu.c
e9bfca
@@ -76,6 +76,9 @@ guestfs_int_get_cpu_model (int kvm)
e9bfca
     return "host";
e9bfca
   else
e9bfca
     return "cortex-a57";
e9bfca
+#elif defined(__powerpc64__)
e9bfca
+  /* See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1605071 */
e9bfca
+  return NULL;
e9bfca
 #else
e9bfca
   /* On most architectures, it is faster to pass the CPU host model to
e9bfca
    * the appliance, allowing maximum speed for things like checksums
e9bfca
-- 
3d5c2a
2.17.2
e9bfca