sPAPR: Enable EEH on VFIO PCI device only
commitd76548a98f4e18d3c65a3d921bbb70caf9be6138
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 18 Sep 2015 07:30:44 +0000 (18 17:30 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 00:51:11 +0000 (23 10:51 +1000)
tree89e1d8b6a24c49a0c559c80d1512fff7799a8b4b
parent47445c80fb57035331574ac1ac0bcee67fb84aeb
sPAPR: Enable EEH on VFIO PCI device only

This checks if the PCI device retrieved from the PCI device address
is VFIO PCI device when enabling EEH functionality. If it's not
VFIO PCI device, the EEH functonality isn't enabled.

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