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