|
|
a83cc2 |
From 09eba380295aef0a27d3fbcdda43019ab2898e08 Mon Sep 17 00:00:00 2001
|
|
|
a83cc2 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a83cc2 |
Date: Fri, 19 Oct 2018 13:47:32 +0200
|
|
|
a83cc2 |
Subject: Add s390x machine types
|
|
|
a83cc2 |
|
|
|
a83cc2 |
Adding changes to add RHEL machine types for s390x architecture.
|
|
|
a83cc2 |
|
|
|
a83cc2 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a83cc2 |
---
|
|
|
a83cc2 |
hw/s390x/s390-virtio-ccw.c | 87 +++++++++++++++++++++++++++++++++++++-
|
|
|
a83cc2 |
1 file changed, 86 insertions(+), 1 deletion(-)
|
|
|
a83cc2 |
|
|
|
a83cc2 |
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
|
|
|
a83cc2 |
index 2972b607f3..8df6dd1c71 100644
|
|
|
a83cc2 |
--- a/hw/s390x/s390-virtio-ccw.c
|
|
|
a83cc2 |
+++ b/hw/s390x/s390-virtio-ccw.c
|
|
|
a83cc2 |
@@ -771,7 +771,7 @@ bool css_migration_enabled(void)
|
|
|
a83cc2 |
{ \
|
|
|
a83cc2 |
MachineClass *mc = MACHINE_CLASS(oc); \
|
|
|
a83cc2 |
ccw_machine_##suffix##_class_options(mc); \
|
|
|
a83cc2 |
- mc->desc = "VirtIO-ccw based S390 machine v" verstr; \
|
|
|
a83cc2 |
+ mc->desc = "VirtIO-ccw based S390 machine " verstr; \
|
|
|
a83cc2 |
if (latest) { \
|
|
|
a83cc2 |
mc->alias = "s390-ccw-virtio"; \
|
|
|
a83cc2 |
mc->is_default = true; \
|
|
|
a83cc2 |
@@ -795,6 +795,7 @@ bool css_migration_enabled(void)
|
|
|
a83cc2 |
} \
|
|
|
a83cc2 |
type_init(ccw_machine_register_##suffix)
|
|
|
a83cc2 |
|
|
|
a83cc2 |
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
a83cc2 |
static void ccw_machine_6_0_instance_options(MachineState *machine)
|
|
|
a83cc2 |
{
|
|
|
a83cc2 |
}
|
|
|
a83cc2 |
@@ -1071,6 +1072,90 @@ static void ccw_machine_2_4_class_options(MachineClass *mc)
|
|
|
a83cc2 |
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
|
a83cc2 |
}
|
|
|
a83cc2 |
DEFINE_CCW_MACHINE(2_4, "2.4", false);
|
|
|
a83cc2 |
+#endif
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel840_instance_options(MachineState *machine)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel840_class_options(MachineClass *mc)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_4, hw_compat_rhel_8_4_len);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+DEFINE_CCW_MACHINE(rhel840, "rhel8.4.0", true);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel820_instance_options(MachineState *machine)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ ccw_machine_rhel840_instance_options(machine);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel820_class_options(MachineClass *mc)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ ccw_machine_rhel840_class_options(mc);
|
|
|
a83cc2 |
+ mc->fixup_ram_size = s390_fixup_ram_size;
|
|
|
a83cc2 |
+ /* we did not publish a rhel8.3.0 machine */
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_3, hw_compat_rhel_8_3_len);
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_2, hw_compat_rhel_8_2_len);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+DEFINE_CCW_MACHINE(rhel820, "rhel8.2.0", false);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel760_instance_options(MachineState *machine)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V3_1 };
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+ ccw_machine_rhel820_instance_options(machine);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+ s390_set_qemu_cpu_model(0x2827, 12, 2, qemu_cpu_feat);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+ /* The multiple-epoch facility was not available with rhel7.6.0 on z14GA1 */
|
|
|
a83cc2 |
+ s390_cpudef_featoff(14, 1, S390_FEAT_MULTIPLE_EPOCH);
|
|
|
a83cc2 |
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_QSIE);
|
|
|
a83cc2 |
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_QTOUE);
|
|
|
a83cc2 |
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_STOE);
|
|
|
a83cc2 |
+ s390_cpudef_featoff(14, 1, S390_FEAT_PTFF_STOUE);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel760_class_options(MachineClass *mc)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ ccw_machine_rhel820_class_options(mc);
|
|
|
a83cc2 |
+ /* We never published the s390x version of RHEL-AV 8.0 and 8.1, so add this here */
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_1, hw_compat_rhel_8_1_len);
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_8_0, hw_compat_rhel_8_0_len);
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_7_6, hw_compat_rhel_7_6_len);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+DEFINE_CCW_MACHINE(rhel760, "rhel7.6.0", false);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel750_instance_options(MachineState *machine)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V2_11 };
|
|
|
a83cc2 |
+ ccw_machine_rhel760_instance_options(machine);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+ /* before 2.12 we emulated the very first z900, and RHEL 7.5 is
|
|
|
a83cc2 |
+ based on 2.10 */
|
|
|
a83cc2 |
+ s390_set_qemu_cpu_model(0x2064, 7, 1, qemu_cpu_feat);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+ /* bpb and ppa15 were only in the full model in RHEL 7.5 */
|
|
|
a83cc2 |
+ s390_cpudef_featoff_greater(11, 1, S390_FEAT_PPA15);
|
|
|
a83cc2 |
+ s390_cpudef_featoff_greater(11, 1, S390_FEAT_BPB);
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+GlobalProperty ccw_compat_rhel_7_5[] = {
|
|
|
a83cc2 |
+ {
|
|
|
a83cc2 |
+ .driver = TYPE_SCLP_EVENT_FACILITY,
|
|
|
a83cc2 |
+ .property = "allow_all_mask_sizes",
|
|
|
a83cc2 |
+ .value = "off",
|
|
|
a83cc2 |
+ },
|
|
|
a83cc2 |
+};
|
|
|
a83cc2 |
+const size_t ccw_compat_rhel_7_5_len = G_N_ELEMENTS(ccw_compat_rhel_7_5);
|
|
|
a83cc2 |
+
|
|
|
a83cc2 |
+static void ccw_machine_rhel750_class_options(MachineClass *mc)
|
|
|
a83cc2 |
+{
|
|
|
a83cc2 |
+ ccw_machine_rhel760_class_options(mc);
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, hw_compat_rhel_7_5, hw_compat_rhel_7_5_len);
|
|
|
a83cc2 |
+ compat_props_add(mc->compat_props, ccw_compat_rhel_7_5, ccw_compat_rhel_7_5_len);
|
|
|
a83cc2 |
+ S390_CCW_MACHINE_CLASS(mc)->hpage_1m_allowed = false;
|
|
|
a83cc2 |
+}
|
|
|
a83cc2 |
+DEFINE_CCW_MACHINE(rhel750, "rhel7.5.0", false);
|
|
|
a83cc2 |
|
|
|
a83cc2 |
static void ccw_machine_register_types(void)
|
|
|
a83cc2 |
{
|
|
|
a83cc2 |
--
|
|
|
a83cc2 |
2.27.0
|
|
|
a83cc2 |
|