s390x/s390-virtio-ccw: Reset PCI devices during subsystem reset
commitdb08244a3a7ec312dfed3fd9b88e114281215458
authorMatthew Rosato <mjrosato@linux.ibm.com>
Thu, 15 Oct 2020 13:16:07 +0000 (15 09:16 -0400)
committerCornelia Huck <cohuck@redhat.com>
Thu, 22 Oct 2020 13:43:33 +0000 (22 15:43 +0200)
tree6e79eca11655a67362f2eaab4e00fdb9aba6ef17
parent4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430
s390x/s390-virtio-ccw: Reset PCI devices during subsystem reset

Currently, a subsystem reset event leaves PCI devices enabled, causing
issues post-reset in the guest (an example would be after a kexec).  These
devices need to be reset during a subsystem reset, allowing them to be
properly re-enabled afterwards.  Add the S390 PCI host bridge to the list
of qdevs to be reset during subsystem reset.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: qemu-stable@nongnu.org
Message-Id: <1602767767-32713-1-git-send-email-mjrosato@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-virtio-ccw.c