mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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