Blame SOURCES/0021-redhat-Add-new-rhel-9.2.0-s390x-machine-type.patch

ed5979
From a932b8d4296066be01613ada84241b501488f99f Mon Sep 17 00:00:00 2001
ed5979
From: Thomas Huth <thuth@redhat.com>
ed5979
Date: Thu, 17 Nov 2022 17:03:24 +0100
ed5979
Subject: redhat: Add new rhel-9.2.0 s390x machine type
ed5979
ed5979
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2136473
ed5979
Upstream Status: n/a (rhel-only)
ed5979
ed5979
RHEL 9.2 will be an EUS release - we want to have a new machine
ed5979
type here to make sure that we have a spot where we can wire up
ed5979
fixes later.
ed5979
ed5979
Signed-off-by: Thomas Huth <thuth@redhat.com>
ed5979
---
ed5979
 hw/s390x/s390-virtio-ccw.c | 15 ++++++++++++++-
ed5979
 1 file changed, 14 insertions(+), 1 deletion(-)
ed5979
ed5979
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
ed5979
index 97e868ada0..aa142a1a4e 100644
ed5979
--- a/hw/s390x/s390-virtio-ccw.c
ed5979
+++ b/hw/s390x/s390-virtio-ccw.c
ed5979
@@ -1190,10 +1190,21 @@ DEFINE_CCW_MACHINE(2_4, "2.4", false);
ed5979
 #endif
ed5979
 
ed5979
 
ed5979
+static void ccw_machine_rhel920_instance_options(MachineState *machine)
ed5979
+{
ed5979
+}
ed5979
+
ed5979
+static void ccw_machine_rhel920_class_options(MachineClass *mc)
ed5979
+{
ed5979
+}
ed5979
+DEFINE_CCW_MACHINE(rhel920, "rhel9.2.0", true);
ed5979
+
ed5979
 static void ccw_machine_rhel900_instance_options(MachineState *machine)
ed5979
 {
ed5979
     static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V6_2 };
ed5979
 
ed5979
+    ccw_machine_rhel920_instance_options(machine);
ed5979
+
ed5979
     s390_set_qemu_cpu_model(0x3906, 14, 2, qemu_cpu_feat);
ed5979
     s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAIE);
ed5979
 }
ed5979
@@ -1206,12 +1217,14 @@ static void ccw_machine_rhel900_class_options(MachineClass *mc)
ed5979
         { TYPE_S390_PCI_DEVICE, "forwarding-assist", "off", },
ed5979
     };
ed5979
 
ed5979
+    ccw_machine_rhel920_class_options(mc);
ed5979
+
ed5979
     compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
ed5979
     compat_props_add(mc->compat_props, hw_compat_rhel_9_1, hw_compat_rhel_9_1_len);
ed5979
     compat_props_add(mc->compat_props, hw_compat_rhel_9_0, hw_compat_rhel_9_0_len);
ed5979
     s390mc->max_threads = S390_MAX_CPUS;
ed5979
 }
ed5979
-DEFINE_CCW_MACHINE(rhel900, "rhel9.0.0", true);
ed5979
+DEFINE_CCW_MACHINE(rhel900, "rhel9.0.0", false);
ed5979
 
ed5979
 static void ccw_machine_rhel860_instance_options(MachineState *machine)
ed5979
 {
ed5979
-- 
ed5979
2.31.1
ed5979