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

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