Re: [PATCH v9 3/9] PCI: Avoid saving config space state in reset path

From: Keith Busch

Date: Wed Feb 18 2026 - 14:03:02 EST


On Tue, Feb 17, 2026 at 11:55:43AM -0800, Farhan Ali wrote:
>
> Yes I think you are right, with this change the PCI Command register gets
> restored to state at enumeration. So we will lose the updated state after
> pci_clear_master() and pci_enable_device(). I think we can update the vfio
> driver to call pci_save_state() after pci_enable_device()?

Either that, or move the pci_enable_device() call to after the function
reset.