Blame SOURCES/kvm-s390x-s390-virtio-ccw-Reset-PCI-devices-during-subsy.patch

c687bc
From fa4e13a01ecc316cc43c1f39490330b94c910bc1 Mon Sep 17 00:00:00 2001
c687bc
From: Thomas Huth <thuth@redhat.com>
c687bc
Date: Mon, 14 Dec 2020 18:29:49 -0500
c687bc
Subject: [PATCH 04/14] s390x/s390-virtio-ccw: Reset PCI devices during
c687bc
 subsystem reset
c687bc
c687bc
RH-Author: Thomas Huth <thuth@redhat.com>
c687bc
Message-id: <20201214182949.35712-2-thuth@redhat.com>
c687bc
Patchwork-id: 100440
c687bc
O-Subject: [RHEL-8.4.0 qemu-kvm PATCH 1/1] s390x/s390-virtio-ccw: Reset PCI devices during subsystem reset
c687bc
Bugzilla: 1905386
c687bc
RH-Acked-by: Danilo de Paula <ddepaula@redhat.com>
c687bc
RH-Acked-by: David Hildenbrand <david@redhat.com>
c687bc
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
c687bc
c687bc
From: Matthew Rosato <mjrosato@linux.ibm.com>
c687bc
c687bc
Currently, a subsystem reset event leaves PCI devices enabled, causing
c687bc
issues post-reset in the guest (an example would be after a kexec).  These
c687bc
devices need to be reset during a subsystem reset, allowing them to be
c687bc
properly re-enabled afterwards.  Add the S390 PCI host bridge to the list
c687bc
of qdevs to be reset during subsystem reset.
c687bc
c687bc
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
c687bc
Reviewed-by: Eric Farman <farman@linux.ibm.com>
c687bc
Acked-by: Halil Pasic <pasic@linux.ibm.com>
c687bc
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
c687bc
Cc: qemu-stable@nongnu.org
c687bc
Message-Id: <1602767767-32713-1-git-send-email-mjrosato@linux.ibm.com>
c687bc
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
c687bc
(cherry picked from commit db08244a3a7ec312dfed3fd9b88e114281215458)
c687bc
Signed-off-by: Thomas Huth <thuth@redhat.com>
c687bc
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
c687bc
---
c687bc
 hw/s390x/s390-virtio-ccw.c | 1 +
c687bc
 1 file changed, 1 insertion(+)
c687bc
c687bc
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
c687bc
index 5905d2b7adc..5b3d07f55c4 100644
c687bc
--- a/hw/s390x/s390-virtio-ccw.c
c687bc
+++ b/hw/s390x/s390-virtio-ccw.c
c687bc
@@ -103,6 +103,7 @@ static const char *const reset_dev_types[] = {
c687bc
     "s390-sclp-event-facility",
c687bc
     "s390-flic",
c687bc
     "diag288",
c687bc
+    TYPE_S390_PCI_HOST_BRIDGE,
c687bc
 };
c687bc
 
c687bc
 static void subsystem_reset(void)
c687bc
-- 
c687bc
2.27.0
c687bc