Blame SOURCES/kvm-redhat-define-pseries-rhel7.5.0-machine-type.patch

4a2fec
From 86ef5cd189077ab6a1a3b55ed844408c1ba8f75a Mon Sep 17 00:00:00 2001
4a2fec
From: Laurent Vivier <lvivier@redhat.com>
4a2fec
Date: Mon, 9 Oct 2017 14:23:16 +0200
4a2fec
Subject: [PATCH 07/69] redhat: define pseries-rhel7.5.0 machine type
4a2fec
4a2fec
RH-Author: Laurent Vivier <lvivier@redhat.com>
4a2fec
Message-id: <20171009142318.6262-3-lvivier@redhat.com>
4a2fec
Patchwork-id: 77034
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 2/4] redhat: define pseries-rhel7.5.0 machine type
4a2fec
Bugzilla: 1478478
4a2fec
RH-Acked-by: David Gibson <dgibson@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
4a2fec
4a2fec
As we don't support migration from PEGAS 1.0, pseries-rhel7.4.0alt is removed
4a2fec
(replaced) in this patch.
4a2fec
4a2fec
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 hw/ppc/spapr.c | 29 ++++++++++++++++++++++-------
4a2fec
 1 file changed, 22 insertions(+), 7 deletions(-)
4a2fec
4a2fec
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
4a2fec
index 30b2c5b..cb317f8 100644
4a2fec
--- a/hw/ppc/spapr.c
4a2fec
+++ b/hw/ppc/spapr.c
4a2fec
@@ -3946,32 +3946,47 @@ DEFINE_SPAPR_MACHINE(2_1, "2.1", false);
4a2fec
 #endif
4a2fec
 
4a2fec
 /*
4a2fec
- * pseries-rhel7.4.0alt
4a2fec
+ * pseries-rhel7.5.0
4a2fec
  */
4a2fec
-static void spapr_machine_rhel740alt_instance_options(MachineState *machine)
4a2fec
+
4a2fec
+static void spapr_machine_rhel750_instance_options(MachineState *machine)
4a2fec
 {
4a2fec
 }
4a2fec
 
4a2fec
-static void spapr_machine_rhel740alt_class_options(MachineClass *mc)
4a2fec
+static void spapr_machine_rhel750_class_options(MachineClass *mc)
4a2fec
 {
4a2fec
     /* Defaults for the latest behaviour inherited from the base class */
4a2fec
 }
4a2fec
 
4a2fec
-DEFINE_SPAPR_MACHINE(rhel740alt, "rhel7.4.0alt", true);
4a2fec
-
4a2fec
+DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", true);
4a2fec
 
4a2fec
 /*
4a2fec
  * pseries-rhel7.4.0
4a2fec
+ * like SPAPR_COMPAT_2_9
4a2fec
  */
4a2fec
 
4a2fec
+#define SPAPR_COMPAT_RHEL7_4                                           \
4a2fec
+    HW_COMPAT_RHEL7_4                                                  \
4a2fec
+    {                                                                  \
4a2fec
+        .driver = TYPE_POWERPC_CPU,                                    \
4a2fec
+        .property = "pre-2.10-migration",                              \
4a2fec
+        .value    = "on",                                              \
4a2fec
+    },                                                                 \
4a2fec
+
4a2fec
 static void spapr_machine_rhel740_instance_options(MachineState *machine)
4a2fec
 {
4a2fec
-    spapr_machine_rhel740alt_instance_options(machine);
4a2fec
+    spapr_machine_rhel750_instance_options(machine);
4a2fec
 }
4a2fec
 
4a2fec
 static void spapr_machine_rhel740_class_options(MachineClass *mc)
4a2fec
 {
4a2fec
-    spapr_machine_rhel740alt_class_options(mc);
4a2fec
+    sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
4a2fec
+
4a2fec
+    spapr_machine_rhel750_class_options(mc);
4a2fec
+    SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_RHEL7_4);
4a2fec
+    mc->numa_auto_assign_ram = numa_legacy_auto_assign_ram;
4a2fec
+    smc->pre_2_10_has_unused_icps = true;
4a2fec
+    smc->resize_hpt_default = SPAPR_RESIZE_HPT_DISABLED;
4a2fec
 }
4a2fec
 
4a2fec
 DEFINE_SPAPR_MACHINE(rhel740, "rhel7.4.0", false);
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec