|
|
7f1c5b |
From 51fcf352a97f2e99a6a3fb8ae663b45436304120 Mon Sep 17 00:00:00 2001
|
|
|
7f1c5b |
From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@redhat.com>
|
|
|
7f1c5b |
Date: Tue, 10 Jan 2023 14:25:34 +0100
|
|
|
7f1c5b |
Subject: [PATCH 11/31] s390x/s390-virtio-ccw: Activate zPCI features on
|
|
|
7f1c5b |
s390-ccw-virtio-rhel8.6.0
|
|
|
7f1c5b |
MIME-Version: 1.0
|
|
|
7f1c5b |
Content-Type: text/plain; charset=UTF-8
|
|
|
7f1c5b |
Content-Transfer-Encoding: 8bit
|
|
|
7f1c5b |
|
|
|
7f1c5b |
RH-Author: Cédric Le Goater <clg@redhat.com>
|
|
|
7f1c5b |
RH-MergeRequest: 133: s390x/s390-virtio-ccw: Activate zPCI features on s390-ccw-virtio-rhel8.6.0
|
|
|
7f1c5b |
RH-Bugzilla: 2159408
|
|
|
7f1c5b |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
7f1c5b |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
7f1c5b |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7f1c5b |
RH-Commit: [1/1] 1ed82e56fe74a283a1726c4893dc3387e645072c (clegoate/qemu-kvm-c9s)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
commit c7b14d3af7 ("s390x/s390-virtio-ccw: Switch off zPCI enhancements
|
|
|
7f1c5b |
on older machines") activated zPCI enhancement features (interpretation
|
|
|
7f1c5b |
and forward assist) silently on the s390-ccw-virtio-rhel8.6.0 machine
|
|
|
7f1c5b |
for RHEL8.8. It didn't seem to be a problem since migration is not
|
|
|
7f1c5b |
possible but it broke LEAPP upgrade to RHEL9 when the machine is
|
|
|
7f1c5b |
defined with a passthrough device. Activate the zPCI features also on
|
|
|
7f1c5b |
RHEL9.2 for the machines to be alike in both latest RHEL distros.
|
|
|
7f1c5b |
|
|
|
7f1c5b |
Upstream Status: RHEL-only
|
|
|
7f1c5b |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2159408
|
|
|
7f1c5b |
|
|
|
7f1c5b |
Signed-off-by: Cédric Le Goater <clg@redhat.com>
|
|
|
7f1c5b |
---
|
|
|
7f1c5b |
hw/s390x/s390-virtio-ccw.c | 12 ++++++++++++
|
|
|
7f1c5b |
1 file changed, 12 insertions(+)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
|
|
|
7f1c5b |
index aa142a1a4e..4cdd59c394 100644
|
|
|
7f1c5b |
--- a/hw/s390x/s390-virtio-ccw.c
|
|
|
7f1c5b |
+++ b/hw/s390x/s390-virtio-ccw.c
|
|
|
7f1c5b |
@@ -1234,8 +1234,14 @@ static void ccw_machine_rhel860_instance_options(MachineState *machine)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
static void ccw_machine_rhel860_class_options(MachineClass *mc)
|
|
|
7f1c5b |
{
|
|
|
7f1c5b |
+ static GlobalProperty compat[] = {
|
|
|
7f1c5b |
+ { TYPE_S390_PCI_DEVICE, "interpret", "on", },
|
|
|
7f1c5b |
+ { TYPE_S390_PCI_DEVICE, "forwarding-assist", "on", },
|
|
|
7f1c5b |
+ };
|
|
|
7f1c5b |
+
|
|
|
7f1c5b |
ccw_machine_rhel900_class_options(mc);
|
|
|
7f1c5b |
compat_props_add(mc->compat_props, hw_compat_rhel_8_6, hw_compat_rhel_8_6_len);
|
|
|
7f1c5b |
+ compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
|
7f1c5b |
|
|
|
7f1c5b |
/* All RHEL machines for prior major releases are deprecated */
|
|
|
7f1c5b |
mc->deprecation_reason = rhel_old_machine_deprecation;
|
|
|
7f1c5b |
@@ -1259,8 +1265,14 @@ static void ccw_machine_rhel850_instance_options(MachineState *machine)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
static void ccw_machine_rhel850_class_options(MachineClass *mc)
|
|
|
7f1c5b |
{
|
|
|
7f1c5b |
+ static GlobalProperty compat[] = {
|
|
|
7f1c5b |
+ { TYPE_S390_PCI_DEVICE, "interpret", "off", },
|
|
|
7f1c5b |
+ { TYPE_S390_PCI_DEVICE, "forwarding-assist", "off", },
|
|
|
7f1c5b |
+ };
|
|
|
7f1c5b |
+
|
|
|
7f1c5b |
ccw_machine_rhel860_class_options(mc);
|
|
|
7f1c5b |
compat_props_add(mc->compat_props, hw_compat_rhel_8_5, hw_compat_rhel_8_5_len);
|
|
|
7f1c5b |
+ compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
|
7f1c5b |
mc->smp_props.prefer_sockets = true;
|
|
|
7f1c5b |
}
|
|
|
7f1c5b |
DEFINE_CCW_MACHINE(rhel850, "rhel8.5.0", false);
|
|
|
7f1c5b |
--
|
|
|
7f1c5b |
2.31.1
|
|
|
7f1c5b |
|