a83cc2
From 1194549a01a472b9ce21819cd32fe253d6263cd6 Mon Sep 17 00:00:00 2001
a83cc2
From: Greg Kurz <gkurz@redhat.com>
a83cc2
Date: Mon, 10 May 2021 15:37:40 -0400
a83cc2
Subject: [PATCH 08/15] redhat: Define pseries-rhel8.5.0 machine type
a83cc2
a83cc2
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
a83cc2
RH-MergeRequest: 5: Synchronize RHEL-AV 8.5 release 18 to RHEL 9 Beta
a83cc2
RH-Commit: [3/12] accc2ed549b94360bc6ab180c4266466816f122e (mrezanin/centos-src-qemu-kvm)
a83cc2
RH-Bugzilla: 1957194
a83cc2
RH-Acked-by: Danilo Cesar Lemes de Paula <ddepaula@redhat.com>
a83cc2
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
a83cc2
RH-Acked-by: Greg Kurz <gkurz@redhat.com>
a83cc2
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
a83cc2
a83cc2
Note that the compat entries for 8.4.0 were already wired up
a83cc2
in the rhel-8.4.0 machine type.
a83cc2
a83cc2
Signed-off-by: Greg Kurz <gkurz@redhat.com>
a83cc2
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
a83cc2
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
a83cc2
---
a83cc2
 hw/ppc/spapr.c | 18 +++++++++++++++---
a83cc2
 1 file changed, 15 insertions(+), 3 deletions(-)
a83cc2
a83cc2
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
a83cc2
index f9e8dfdfc9..653574ba91 100644
a83cc2
--- a/hw/ppc/spapr.c
a83cc2
+++ b/hw/ppc/spapr.c
a83cc2
@@ -5083,6 +5083,19 @@ static void spapr_machine_rhel_default_class_options(MachineClass *mc)
a83cc2
     mc->max_cpus = 384;
a83cc2
 }
a83cc2
 
a83cc2
+/*
a83cc2
+ * pseries-rhel8.5.0
a83cc2
+ * like pseries-6.0
a83cc2
+ */
a83cc2
+
a83cc2
+static void spapr_machine_rhel850_class_options(MachineClass *mc)
a83cc2
+{
a83cc2
+    /* The default machine type must apply the RHEL specific defaults */
a83cc2
+    spapr_machine_rhel_default_class_options(mc);
a83cc2
+}
a83cc2
+
a83cc2
+DEFINE_SPAPR_MACHINE(rhel850, "rhel8.5.0", true);
a83cc2
+
a83cc2
 /*
a83cc2
  * pseries-rhel8.4.0
a83cc2
  * like pseries-5.2
a83cc2
@@ -5090,13 +5103,12 @@ static void spapr_machine_rhel_default_class_options(MachineClass *mc)
a83cc2
 
a83cc2
 static void spapr_machine_rhel840_class_options(MachineClass *mc)
a83cc2
 {
a83cc2
-    /* The default machine type must apply the RHEL specific defaults */
a83cc2
-    spapr_machine_rhel_default_class_options(mc);
a83cc2
+    spapr_machine_rhel850_class_options(mc);
a83cc2
     compat_props_add(mc->compat_props, hw_compat_rhel_8_4,
a83cc2
                      hw_compat_rhel_8_4_len);
a83cc2
 }
a83cc2
 
a83cc2
-DEFINE_SPAPR_MACHINE(rhel840, "rhel8.4.0", true);
a83cc2
+DEFINE_SPAPR_MACHINE(rhel840, "rhel8.4.0", false);
a83cc2
 
a83cc2
 /*
a83cc2
  * pseries-rhel8.3.0
a83cc2
-- 
a83cc2
2.27.0
a83cc2