Re: [PATCH v8 02/12] PCI: liveupdate: Track outgoing preserved PCI devices
Samiullah Khawaja <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.infradead.lists.kexec,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 28, 2026 at 10:09:56PM +0000, David Matlack wrote: >Add APIs to allow drivers to notify the PCI core of which devices are >being preserved across a Live Update for the next kernel, i.e. >"outgoing" devices. > >Drivers must notify the PCI core when devices are preserved so that the >PCI core can update its FLB data (struct pci_ser) and track the list of >outgoing devices. pci_liveupdate_preserve() notifies the PCI core that a >device must be preserved across Live Update. pci_liveupdate_unpreserve() >reverses this (cancels the preservation of the device). > >This tracking ensures the PCI core is fully aware of which devices may >need special handling during shutdown and kexec, and so the list of >preserved devices can be handed off to the next kernel. > >For now, the API only supports preserving non-VF devices on a root bus >(not behind an PCI-to-PCI bridges). > >Reviewed-by: Pranjal Shrivastava <[email protected]> >Reviewed-by: Pasha Tatashin <[email protected]> >Reviewed-by: Bjorn Helgaas <[email protected]> >Signed-off-by: David Matlack <[email protected]> >--- > drivers/pci/liveupdate.c | 210 +++++++++++++++++++++++++++++++++ > drivers/pci/liveupdate.h | 21 ++++ > drivers/pci/probe.c | 2 + > include/linux/pci.h | 3 + > include/linux/pci_liveupdate.h | 21 ++++ > 5 files changed, 257 insertions(+) > create mode 100644 drivers/pci/liveupdate.h > Reviewed-by: Samiullah Khawaja <[email protected]>