powerpc/eeh: Don't remove passed VFs
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 3 Mar 2016 23:53:13 +0000 (10:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Mar 2016 22:58:27 +0000 (09:58 +1100)
commit3fa7bf7229993eac65fd6ade2ffc5f75150b40e1
tree658a64cddcdef17a1cc064f769a0ccd5592ee12b
parent2311cca55589ae7889071e11e18c9260b68314e2
powerpc/eeh: Don't remove passed VFs

When we have partial hotplug as part of the error recovery on PF,
the VFs that are bound with vfio-pci driver will experience hotplug.
That's not allowed.

This checks if the VF PE is passed or not. If it does, we leave
the VF without removing it.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c