Re: [RFC PATCH 0/5] PCI/vfio-pci: Guard resets against active SR-IOV VFs

From: Samiullah Khawaja

Date: Thu Aug 13 2026 - 18:32:17 EST


On Tue, Aug 11, 2026 at 10:53:18PM -0600, Alex Williamson wrote:
It's recently been found[1] that vfio-pci doesn't restrict resets on PFs
while SR-IOV is enabled. This can not only result in an uncoordinated
disruption of the use of the associated VFs, but the ongoing use of and
access to the VF has the potential to result in machine checks.

This series proposes that this gap is largely an oversight of
pci_reset_function() to recognize that a PF reset affecting SR-IOV VFs
violates the scope boundary of the pci_reset_function() API.

Hi Alex,

Thanks for sending out the RFC to fix this issue. I cherry-picked it
into my environment to verify that whether it fixes the issue I was
experiencing and it does fix it. I will continue to do more testing, but
when you send this as a formal v1, you can add:

Tested-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
Reported-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>

Sami