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

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