60061b
From 300cdf7f5b8b34e111c5e4141684af7329be46d9 Mon Sep 17 00:00:00 2001
60061b
From: Greg Kurz <gkurz@redhat.com>
60061b
Date: Mon, 13 Dec 2021 15:42:41 +0100
60061b
Subject: [PATCH 2/2] redhat: Define pseries-rhel8.6.0 machine type
60061b
MIME-Version: 1.0
60061b
Content-Type: text/plain; charset=UTF-8
60061b
Content-Transfer-Encoding: 8bit
60061b
60061b
RH-Author: Greg Kurz <gkurz@redhat.com>
60061b
RH-MergeRequest: 92: redhat: Define pseries-rhel8.6.0 machine type
60061b
RH-Commit: [1/1] 3c0f59d7ddf4bb22f382b5df7daa136730b9e866
60061b
RH-Bugzilla: 2031041
60061b
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
60061b
RH-Acked-by: David Gibson (Red Hat) <dgibson@redhat.com>
60061b
RH-Acked-by: Thomas Huth <thuth@redhat.com>
60061b
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
60061b
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
60061b
60061b
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2031041
60061b
60061b
BRANCH: rhel-8.6.0
60061b
60061b
UPSTREAM: RHEL only
60061b
60061b
BREW: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=41989147
60061b
60061b
Signed-off-by: Greg Kurz <gkurz@redhat.com>
60061b
---
60061b
 hw/ppc/spapr.c | 18 +++++++++++++++---
60061b
 1 file changed, 15 insertions(+), 3 deletions(-)
60061b
60061b
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
60061b
index 2f27888d8a..32cfe8f006 100644
60061b
--- a/hw/ppc/spapr.c
60061b
+++ b/hw/ppc/spapr.c
60061b
@@ -5170,6 +5170,19 @@ static void spapr_machine_rhel_default_class_options(MachineClass *mc)
60061b
     mc->max_cpus = 384;
60061b
 }
60061b
 
60061b
+/*
60061b
+ * pseries-rhel8.6.0
60061b
+ * like pseries-6.2
60061b
+ */
60061b
+
60061b
+static void spapr_machine_rhel860_class_options(MachineClass *mc)
60061b
+{
60061b
+    /* The default machine type must apply the RHEL specific defaults */
60061b
+    spapr_machine_rhel_default_class_options(mc);
60061b
+}
60061b
+
60061b
+DEFINE_SPAPR_MACHINE(rhel860, "rhel8.6.0", true);
60061b
+
60061b
 /*
60061b
  * pseries-rhel8.5.0
60061b
  * like pseries-6.0
60061b
@@ -5179,15 +5192,14 @@ static void spapr_machine_rhel850_class_options(MachineClass *mc)
60061b
 {
60061b
     SpaprMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
60061b
 
60061b
-    /* The default machine type must apply the RHEL specific defaults */
60061b
-    spapr_machine_rhel_default_class_options(mc);
60061b
+    spapr_machine_rhel860_class_options(mc);
60061b
     compat_props_add(mc->compat_props, hw_compat_rhel_8_5,
60061b
                      hw_compat_rhel_8_5_len);
60061b
     smc->pre_6_2_numa_affinity = true;
60061b
     mc->smp_props.prefer_sockets = true;
60061b
 }
60061b
 
60061b
-DEFINE_SPAPR_MACHINE(rhel850, "rhel8.5.0", true);
60061b
+DEFINE_SPAPR_MACHINE(rhel850, "rhel8.5.0", false);
60061b
 
60061b
 /*
60061b
  * pseries-rhel8.4.0
60061b
-- 
60061b
2.27.0
60061b