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

383d26
From 7b1ad037d92201aee894afd9cc70a852721f2d9d Mon Sep 17 00:00:00 2001
383d26
From: Laurent Vivier <lvivier@redhat.com>
383d26
Date: Thu, 24 May 2018 14:11:45 +0200
383d26
Subject: [PATCH 4/8] redhat: define pseries-rhel7.6.0 machine types
383d26
383d26
RH-Author: Laurent Vivier <lvivier@redhat.com>
383d26
Message-id: <20180524141145.7532-3-lvivier@redhat.com>
383d26
Patchwork-id: 80470
383d26
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 2/2] redhat: define pseries-rhel7.6.0 machine types
383d26
Bugzilla: 1557054
383d26
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
383d26
RH-Acked-by: Thomas Huth <thuth@redhat.com>
383d26
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
383d26
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
383d26
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 hw/ppc/spapr.c | 26 ++++++++++++++++++++++++--
383d26
 1 file changed, 24 insertions(+), 2 deletions(-)
383d26
383d26
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
383d26
index 6f005a0..e2df370 100644
383d26
--- a/hw/ppc/spapr.c
383d26
+++ b/hw/ppc/spapr.c
383d26
@@ -4354,19 +4354,41 @@ DEFINE_SPAPR_MACHINE(2_1, "2.1", false);
383d26
 #endif
383d26
 
383d26
 /*
383d26
+ * pseries-rhel7.6.0
383d26
+ */
383d26
+
383d26
+static void spapr_machine_rhel760_instance_options(MachineState *machine)
383d26
+{
383d26
+}
383d26
+
383d26
+static void spapr_machine_rhel760_class_options(MachineClass *mc)
383d26
+{
383d26
+    /* Defaults for the latest behaviour inherited from the base class */
383d26
+}
383d26
+
383d26
+DEFINE_SPAPR_MACHINE(rhel760, "rhel7.6.0", true);
383d26
+
383d26
+/*
383d26
  * pseries-rhel7.5.0
383d26
+ * like SPAPR_COMPAT_2_11 and SPAPR_COMPAT_2_10
383d26
+ * SPAPR_CAP_HTM already enabled in 7.4
383d26
+ *
383d26
  */
383d26
+#define SPAPR_COMPAT_RHEL7_5                                           \
383d26
+    HW_COMPAT_RHEL7_5                                                  \
383d26
 
383d26
 static void spapr_machine_rhel750_instance_options(MachineState *machine)
383d26
 {
383d26
+    spapr_machine_rhel760_instance_options(machine);
383d26
 }
383d26
 
383d26
 static void spapr_machine_rhel750_class_options(MachineClass *mc)
383d26
 {
383d26
-    /* Defaults for the latest behaviour inherited from the base class */
383d26
+    spapr_machine_rhel760_class_options(mc);
383d26
+    SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_RHEL7_5);
383d26
 }
383d26
 
383d26
-DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", true);
383d26
+DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", false);
383d26
 
383d26
 /*
383d26
  * pseries-rhel7.5.0-sxxm
383d26
-- 
383d26
1.8.3.1
383d26