OSDN Git Service

sPAPR: Don't enable EEH on emulated PCI devices
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:26 +0000 (16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:53 +0000 (17:44 +0200)
commit7cb180079e245024cf92ca218ca58858b679a7d6
treed2814a56bf2b51f837fc4c406d2a5682196f516f
parente275934d2dd44e38e0c6d53f9c22383d2ba57c17
sPAPR: Don't enable EEH on emulated PCI devices

There might have emulated PCI devices, together with VFIO PCI
devices under one PHB. The EEH capability shouldn't enabled
on emulated PCI devices.

The patch returns error when enabling EEH capability on emulated
PCI devices by RTAS call "ibm,set-eeh-option".

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