yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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