Blame SOURCES/0020-redhat-Update-s390x-machine-type-compatibility-for-r.patch

586cba
From c8ad21ca31892f8798cf82508c2b2c61bf3b9895 Mon Sep 17 00:00:00 2001
586cba
From: Thomas Huth <thuth@redhat.com>
586cba
Date: Mon, 4 Apr 2022 12:15:50 +0200
586cba
Subject: redhat: Update s390x machine type compatibility for rebase to QEMU
586cba
 7.0.0
586cba
586cba
RH-Author: Thomas Huth <thuth@redhat.com>
586cba
RH-MergeRequest: 143: Update machine type compatibility for QEMU 7.0.0 update [s390x]
586cba
RH-Commit: [23/23] 0ecf97d7bdddc50565b5779c64744b353f715cbd
586cba
RH-Bugzilla: 2064782
586cba
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
586cba
RH-Acked-by: David Hildenbrand <david@redhat.com>
586cba
586cba
No s390x-specific machine class property updates required this time,
586cba
only an update to the default qemu cpu model.
586cba
586cba
Signed-off-by: Thomas Huth <thuth@redhat.com>
586cba
---
586cba
 hw/s390x/s390-virtio-ccw.c | 3 +++
586cba
 1 file changed, 3 insertions(+)
586cba
586cba
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
586cba
index 08e0f6a79b..4a491d4988 100644
586cba
--- a/hw/s390x/s390-virtio-ccw.c
586cba
+++ b/hw/s390x/s390-virtio-ccw.c
586cba
@@ -1121,6 +1121,9 @@ DEFINE_CCW_MACHINE(2_4, "2.4", false);
586cba
 
586cba
 static void ccw_machine_rhel900_instance_options(MachineState *machine)
586cba
 {
586cba
+    static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V6_2 };
586cba
+
586cba
+    s390_set_qemu_cpu_model(0x3906, 14, 2, qemu_cpu_feat);
586cba
 }
586cba
 
586cba
 static void ccw_machine_rhel900_class_options(MachineClass *mc)
586cba
-- 
586cba
2.31.1
586cba