2021-12-16 07:06:10 +00:00
|
|
|
From ea22b5ae0a89ef53f31f67bb6845fd6c45d4f412 Mon Sep 17 00:00:00 2001
|
2018-11-08 17:02:33 +00:00
|
|
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
2018-11-29 12:09:34 +00:00
|
|
|
Date: Fri, 19 Oct 2018 13:47:32 +0200
|
2018-11-08 17:02:33 +00:00
|
|
|
Subject: Add s390x machine types
|
|
|
|
|
|
|
|
Adding changes to add RHEL machine types for s390x architecture.
|
|
|
|
|
|
|
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
2021-09-02 06:44:51 +00:00
|
|
|
--
|
2021-12-16 07:06:10 +00:00
|
|
|
Merged patches (6.1.0):
|
2021-09-02 06:44:51 +00:00
|
|
|
- 64a9a5c971 hw/s390x: Remove the RHEL7-only machine type
|
|
|
|
- 395516d62b redhat: s390x: add rhel-8.5.0 compat machine
|
2021-12-16 07:06:10 +00:00
|
|
|
|
|
|
|
Merged patches (6.2.0 RC0):
|
|
|
|
- 3bf66f4520 redhat: Add s390x machine type compatibility update for 6.1 rebase
|
2018-11-08 17:02:33 +00:00
|
|
|
---
|
2021-12-16 07:06:10 +00:00
|
|
|
hw/s390x/s390-virtio-ccw.c | 67 +++++++++++++++++++++++++++++++++++++-
|
|
|
|
1 file changed, 66 insertions(+), 1 deletion(-)
|
2018-11-08 17:02:33 +00:00
|
|
|
|
|
|
|
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
|
2021-12-16 07:06:10 +00:00
|
|
|
index 653587ea62..4af14cb9ca 100644
|
2018-11-08 17:02:33 +00:00
|
|
|
--- a/hw/s390x/s390-virtio-ccw.c
|
|
|
|
+++ b/hw/s390x/s390-virtio-ccw.c
|
2021-09-02 06:44:51 +00:00
|
|
|
@@ -767,7 +767,7 @@ bool css_migration_enabled(void)
|
2018-11-08 17:02:33 +00:00
|
|
|
{ \
|
|
|
|
MachineClass *mc = MACHINE_CLASS(oc); \
|
|
|
|
ccw_machine_##suffix##_class_options(mc); \
|
|
|
|
- mc->desc = "VirtIO-ccw based S390 machine v" verstr; \
|
|
|
|
+ mc->desc = "VirtIO-ccw based S390 machine " verstr; \
|
|
|
|
if (latest) { \
|
|
|
|
mc->alias = "s390-ccw-virtio"; \
|
2020-05-13 01:03:43 +00:00
|
|
|
mc->is_default = true; \
|
2021-09-02 06:44:51 +00:00
|
|
|
@@ -791,6 +791,7 @@ bool css_migration_enabled(void)
|
2019-05-07 21:00:36 +00:00
|
|
|
} \
|
|
|
|
type_init(ccw_machine_register_##suffix)
|
2018-11-08 17:02:33 +00:00
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2021-12-16 07:06:10 +00:00
|
|
|
static void ccw_machine_6_2_instance_options(MachineState *machine)
|
2019-05-07 21:00:36 +00:00
|
|
|
{
|
|
|
|
}
|
2021-12-16 07:06:10 +00:00
|
|
|
@@ -1100,6 +1101,70 @@ static void ccw_machine_2_4_class_options(MachineClass *mc)
|
2019-08-15 04:45:41 +00:00
|
|
|
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
2018-11-08 17:02:33 +00:00
|
|
|
}
|
|
|
|
DEFINE_CCW_MACHINE(2_4, "2.4", false);
|
2019-08-15 04:45:41 +00:00
|
|
|
+#endif
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
2021-09-02 06:44:51 +00:00
|
|
|
+static void ccw_machine_rhel850_instance_options(MachineState *machine)
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static void ccw_machine_rhel850_class_options(MachineClass *mc)
|
|
|
|
+{
|
2021-12-16 07:06:10 +00:00
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_5, hw_compat_rhel_8_5_len);
|
2021-09-02 06:44:51 +00:00
|
|
|
+}
|
|
|
|
+DEFINE_CCW_MACHINE(rhel850, "rhel8.5.0", true);
|
|
|
|
+
|
2021-04-30 07:28:51 +00:00
|
|
|
+static void ccw_machine_rhel840_instance_options(MachineState *machine)
|
|
|
|
+{
|
2021-09-02 06:44:51 +00:00
|
|
|
+ ccw_machine_rhel850_instance_options(machine);
|
2021-04-30 07:28:51 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static void ccw_machine_rhel840_class_options(MachineClass *mc)
|
|
|
|
+{
|
2021-09-02 06:44:51 +00:00
|
|
|
+ ccw_machine_rhel850_class_options(mc);
|
2021-04-30 07:28:51 +00:00
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_4, hw_compat_rhel_8_4_len);
|
|
|
|
+}
|
2021-09-02 06:44:51 +00:00
|
|
|
+DEFINE_CCW_MACHINE(rhel840, "rhel8.4.0", false);
|
2021-04-30 07:28:51 +00:00
|
|
|
+
|
2019-12-13 13:10:42 +00:00
|
|
|
+static void ccw_machine_rhel820_instance_options(MachineState *machine)
|
2019-05-07 21:00:36 +00:00
|
|
|
+{
|
2021-04-30 07:28:51 +00:00
|
|
|
+ ccw_machine_rhel840_instance_options(machine);
|
2019-05-07 21:00:36 +00:00
|
|
|
+}
|
|
|
|
+
|
2019-12-13 13:10:42 +00:00
|
|
|
+static void ccw_machine_rhel820_class_options(MachineClass *mc)
|
2019-05-07 21:00:36 +00:00
|
|
|
+{
|
2021-04-30 07:28:51 +00:00
|
|
|
+ ccw_machine_rhel840_class_options(mc);
|
2020-05-13 01:03:43 +00:00
|
|
|
+ mc->fixup_ram_size = s390_fixup_ram_size;
|
2021-04-30 07:28:51 +00:00
|
|
|
+ /* we did not publish a rhel8.3.0 machine */
|
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_3, hw_compat_rhel_8_3_len);
|
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_2, hw_compat_rhel_8_2_len);
|
2019-05-07 21:00:36 +00:00
|
|
|
+}
|
2021-04-30 07:28:51 +00:00
|
|
|
+DEFINE_CCW_MACHINE(rhel820, "rhel8.2.0", false);
|
2018-11-08 17:02:33 +00:00
|
|
|
+
|
|
|
|
+static void ccw_machine_rhel760_instance_options(MachineState *machine)
|
|
|
|
+{
|
2019-11-15 14:35:04 +00:00
|
|
|
+ static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V3_1 };
|
|
|
|
+
|
2019-12-13 13:10:42 +00:00
|
|
|
+ ccw_machine_rhel820_instance_options(machine);
|
2019-11-15 14:35:04 +00:00
|
|
|
+
|
|
|
|
+ s390_set_qemu_cpu_model(0x2827, 12, 2, qemu_cpu_feat);
|
|
|
|
+
|
|
|
|
+ /* The multiple-epoch facility was not available with rhel7.6.0 on z14GA1 */
|
|
|
|
+ s390_cpudef_featoff(14, 1, S390_FEAT_MULTIPLE_EPOCH);
|
|
|
|
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_QSIE);
|
|
|
|
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_QTOUE);
|
|
|
|
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_STOE);
|
|
|
|
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_STOUE);
|
2018-11-08 17:02:33 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static void ccw_machine_rhel760_class_options(MachineClass *mc)
|
|
|
|
+{
|
2019-12-13 13:10:42 +00:00
|
|
|
+ ccw_machine_rhel820_class_options(mc);
|
|
|
|
+ /* We never published the s390x version of RHEL-AV 8.0 and 8.1, so add this here */
|
2021-04-30 07:28:51 +00:00
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_1, hw_compat_rhel_8_1_len);
|
2019-11-15 14:35:04 +00:00
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_0, hw_compat_rhel_8_0_len);
|
2019-05-07 21:00:36 +00:00
|
|
|
+ compat_props_add(mc->compat_props, hw_compat_rhel_7_6, hw_compat_rhel_7_6_len);
|
2018-11-08 17:02:33 +00:00
|
|
|
+}
|
2019-05-07 21:00:36 +00:00
|
|
|
+DEFINE_CCW_MACHINE(rhel760, "rhel7.6.0", false);
|
2019-08-15 04:45:41 +00:00
|
|
|
|
2018-11-08 17:02:33 +00:00
|
|
|
static void ccw_machine_register_types(void)
|
|
|
|
{
|
|
|
|
--
|
2021-04-30 07:28:51 +00:00
|
|
|
2.27.0
|
2018-11-08 17:02:33 +00:00
|
|
|
|