sPAPR: Reenable EEH functionality on reboot
commitaef87d1b879416909a4ac73e6fe2cea4a5630f40
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:27 +0000 (2 16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:53 +0000 (7 17:44 +0200)
tree61538fd17bc0f4540e8ba2678101fe539cf5c696
parent7cb180079e245024cf92ca218ca58858b679a7d6
sPAPR: Reenable EEH functionality on reboot

When rebooting the guest, some PEs might be in frozen state. The
contained PCI devices won't work properly if their frozen states
aren't cleared in time. One case running into this situation would
be maximal EEH error times encountered in the guest.

The patch reenables the EEH functinality on PEs on PHB's reset
callback, which will clear their frozen states if needed.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_pci_vfio.c