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

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