Re: [RFC PATCH 1/5] PCI: Refuse function reset of an SR-IOV PF with enabled VFs
Jason Gunthorpe <[email protected]>
| Newsgroups | org.kernel.vger.linux-pci,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 18, 2026 at 07:07:20AM +0000, Tian, Kevin wrote: > 3) resetting a PF due to ad-hoc FW error > > e.g. pdsc_check_pci_health() calls pci_reset_function() when FW > reports broken PCI. Sounds a similar condition to AER. > > but as it calls pci_reset_function() this series causes a regression > in case of active VFs. Is it desired? mlx5 does something similar. RAS flows require detecting the PF has blown up and resetting it to bring it back. This has to work while VFs exist and bound to kernel drivers or vfio. In the VFIO KVM case I would expect the VM to experiance a RAS error on its vPCI device and trigger a VF flr But we have to sort all this out through the hypervisor to not crash the machine or otherwise :) Jason