Blame SOURCES/0041-redhat-define-pseries-rhel7.6.0-machine-types.patch

ae23c9
From 7574808ac154ac9ddf8264bf14e775fab96d0cac Mon Sep 17 00:00:00 2001
ae23c9
From: Laurent Vivier <lvivier@redhat.com>
ae23c9
Date: Thu, 7 Jun 2018 12:55:12 +0000
ae23c9
Subject: redhat: define pseries-rhel7.6.0 machine types
ae23c9
ae23c9
BREW:     https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=16632825
ae23c9
BZ:       https://bugzilla.redhat.com/show_bug.cgi?id=1585651
ae23c9
BRANCH:   rhel8/master-2.12.0
ae23c9
UPSTREAM: downsream only
ae23c9
Tested:   minimal, as the change is the same as for RHEL7.6
ae23c9
          Tested ping-pong migration between two
ae23c9
          pseries-rhel7.6.0/qemu-kvm-2.12.0 and with
ae23c9
          pseries-rhel7.5.0/qemu-kvm-rhev-2.10
ae23c9
ae23c9
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
ae23c9
---
ae23c9
 hw/ppc/spapr.c | 26 ++++++++++++++++++++++++--
ae23c9
 1 file changed, 24 insertions(+), 2 deletions(-)
ae23c9
ae23c9
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
ae23c9
index c751111..c3f08b3 100644
ae23c9
--- a/hw/ppc/spapr.c
ae23c9
+++ b/hw/ppc/spapr.c
ae23c9
@@ -4352,19 +4352,41 @@ DEFINE_SPAPR_MACHINE(2_1, "2.1", false);
ae23c9
 #endif
ae23c9
 
ae23c9
 /*
ae23c9
+ * pseries-rhel7.6.0
ae23c9
+ */
ae23c9
+
ae23c9
+static void spapr_machine_rhel760_instance_options(MachineState *machine)
ae23c9
+{
ae23c9
+}
ae23c9
+
ae23c9
+static void spapr_machine_rhel760_class_options(MachineClass *mc)
ae23c9
+{
ae23c9
+    /* Defaults for the latest behaviour inherited from the base class */
ae23c9
+}
ae23c9
+
ae23c9
+DEFINE_SPAPR_MACHINE(rhel760, "rhel7.6.0", true);
ae23c9
+
ae23c9
+/*
ae23c9
  * pseries-rhel7.5.0
ae23c9
+ * like SPAPR_COMPAT_2_11 and SPAPR_COMPAT_2_10
ae23c9
+ * SPAPR_CAP_HTM already enabled in 7.4
ae23c9
+ *
ae23c9
  */
ae23c9
+#define SPAPR_COMPAT_RHEL7_5                                           \
ae23c9
+    HW_COMPAT_RHEL7_5                                                  \
ae23c9
 
ae23c9
 static void spapr_machine_rhel750_instance_options(MachineState *machine)
ae23c9
 {
ae23c9
+    spapr_machine_rhel760_instance_options(machine);
ae23c9
 }
ae23c9
 
ae23c9
 static void spapr_machine_rhel750_class_options(MachineClass *mc)
ae23c9
 {
ae23c9
-    /* Defaults for the latest behaviour inherited from the base class */
ae23c9
+    spapr_machine_rhel760_class_options(mc);
ae23c9
+    SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_RHEL7_5);
ae23c9
 }
ae23c9
 
ae23c9
-DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", true);
ae23c9
+DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", false);
ae23c9
 
ae23c9
 /*
ae23c9
  * pseries-rhel7.5.0-sxxm
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9