[PATCH v1] powerpc/eeh: Fix missing PE bridge reconfiguration during VFIO EEH recovery

Madhavan Srinivasan maddy at linux.ibm.com
Sun Jun 15 12:39:15 AEST 2025


On Thu, 08 May 2025 02:29:28 -0400, Narayana Murty N wrote:
> VFIO EEH recovery for PCI passthrough devices fails on PowerNV and pseries
> platforms due to missing host-side PE bridge reconfiguration. In the
> current implementation, eeh_pe_configure() only performs RTAS or OPAL-based
> bridge reconfiguration for native host devices, but skips it entirely for
> PEs managed through VFIO in guest passthrough scenarios.
> 
> This leads to incomplete EEH recovery when a PCI error affects a
> passthrough device assigned to a QEMU/KVM guest. Although VFIO triggers the
> EEH recovery flow through VFIO_EEH_PE_ENABLE ioctl, the platform-specific
> bridge reconfiguration step is silently bypassed. As a result, the PE's
> config space is not fully restored, causing subsequent config space access
> failures or EEH freeze-on-access errors inside the guest.
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/eeh: Fix missing PE bridge reconfiguration during VFIO EEH recovery
      https://git.kernel.org/powerpc/c/33bc69cf6655cf60829a803a45275f11a74899e5

Thanks


More information about the Linuxppc-dev mailing list