From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.217.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793815226; b=1hs7rGeTUJ/KU0mAVgQCEcLbnVgjheB0CK4yIWo+OXMCyXqxIY0kJ/9dJFFqTMRgL1EI q6vPZqlu4Dxm54uohR5VGboJhnv/6TnrAdf8nA+0H+JobDVEtSmGGpOjoOznvD6UNHs2r 66l7NSNUrUc7mGRHIUUlQu1fbhRMj4cwg91M+X/uwdsAfmm39u1LOI2xnXgsF1Ap7mlza 8WB/XxoMkPpmRDekHhKeEND3IUCx15RgNW1meTDe7f1sy255tZNQ4BoEwajbK036Oy3Lh ZzUW59a4qYby3iDQ8YNrjTBkW53GU6chd7nmKT85AKLGI53unzzNocdnZhkrq5GVYug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793815226; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=JAX2rOFX3ps0z7E54cgly2XJNYqW8YfGnVzidzlyKN4=; b=Z+xAwne08WqIykuCBV2KV4/8dASaaxE84knD39Q4s4maaunOj+jX/yeIZRLUfX7G9xdr Rg5dj12g0XQ4OVbNRo6pFXhUUAwG6CPtfLdxEeOKf4cIpVb7/7QvrTdJJl7G8dDEhR/fK BXzszQEUKUdsy1KaP38bU99vJ7eKggD2l2rRBwSAqBdbbMeG/+4URvEryMNSTWliymPpV vI+6xt588ZRbkZqk9PchMtm3vj4rmi5Qz/XISTCp3PgvtSGiG+zv7V6vjWBgKXxduqg5K q/GWwhU+5a+Vo2kvKUxbw8towG5OsEl/Wt7RLmFLDhgWw5xPR1nCffuWndygFbpRIUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=soleen.com; spf=pass smtp.mailfrom=soleen.com; dkim=pass header.d=soleen.com header.i=@soleen.com header.a=rsa-sha256 header.s=google header.b=g5iMOwTh; arc=none smtp.remote-ip=209.85.217.47 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 944786074A4B for ; Wed, 4 Nov 2026 18:00:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 944786074A4B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=soleen.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soleen.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=soleen.com header.i=@soleen.com header.a=rsa-sha256 header.s=google header.b=g5iMOwTh Received: by mail-vs1-f47.google.com with SMTP id ada2fe7eead31-7cc365db987so636289137.0 for ; Wed, 04 Nov 2026 10:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1793815224; x=1794420024; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JAX2rOFX3ps0z7E54cgly2XJNYqW8YfGnVzidzlyKN4=; b=g5iMOwThX+uE+7xsUaGHYp7csSg/cw1QC0Zn78GJVNHcZU7wyhpKG7ije+QTRwPjdC zecPx0d+8hWLwKjLelfE4KxCT63+V2598YFacCCjm1WZI7lh1Dkl4ywNr552sqNsZfN0 1D2oFE502NTv+ISi+I51HLtxJyZ+7UTOzL+27rjsur7LECqPVVL3e5hJ9+rcWX3BGctn hTVH/2y2Fy6ziFzdTOkp/akeK2x3V/pd1J1poAtcCCWbctt8AwcLGbTs3sIRXhWhbJFo S/CFPMAQnuLl3iONSFxM9KIU04d3YWS5O8kA3yxJkA5qXnphvXd2ZgSnUwc9FSBBfTa8 ejxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793815224; x=1794420024; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JAX2rOFX3ps0z7E54cgly2XJNYqW8YfGnVzidzlyKN4=; b=CIdO1AV5++ATt+UqFbbAEooMKVDyy9oiLq9/hSGEqx0UyEJegT6Jfgw+/0LTASj+Wa 1BishpBU/zlL00fVSc/GE+DpW3Uimnhy3A2X34zF2LeYRiZmDo56LSV9MEvKVg6Ocznl aFrVD3JYIzoJUJ79OhWiYTkrBjK9TY4JCMv8x8T8fVM3Xj6IC0SAIYdUsbRQRbEzHR8X EX7zOkad7xW/DJT2G9ig3ftx+53+jpqC764uQGMek4WDZhJJSqdVjB3o+SjKXO/upwbX NuQQbifKSnOerjO10pkJTJr+wjEdOuLyIlvQsYGDkeI0+ftzI7USYftq2nzUWlFkPpVh V8SA== X-Forwarded-Encrypted: i=1; AKwUvBzRTvmWF1EAVwYvvwevgDaIRLtS05oVp9OYOzy2IUnwQ4BBm2pYgzEQenxF4HT/a5W1JsZaFeEoF2E=@vger.kernel.org X-Gm-Message-State: APuU4Z8hP7zkbsXZLnhGo4DP4c+ZxUv8lq6ai7YF3cZwxer3j14rHN9k nzkmKXzmebMVt7nrBHYYnhwHI9SOWVcTEftzrsk8C34O5DCHrMmyN9jb3eMAEkXzEVo= X-Gm-Gg: AYBFou0ehZC13VHZwqxhGri+868u9x4YDwy+ouAEKI0bjFGs2AbZenhXuXBqFKsfyP2 g+KFn32cCjpctVOJYu+zzcCTuIVZDu+qmletxlW9GDsIhhCkPv9qZ/8sOk1liF7K+A9d0US0U96 7jjD7sXL/+vUSWS/uzl5vJpmwjWPMcCQTQiUZBB6+L5ioUD9Pg0KeBJS0AeEkxo6xaMOQ0r7XgK g0HTYBUU4v3uiD+p9g4qiGIFTyme7ol3oWbtRnoSxZqCI4eL1jdXVEnct9zpT9oonEhe0y75fCX BIdcK8v4aC0jc8Yr38y2GRfH/3MNZi1Nqdj9qyhUnTb4zZS0AQGW+DZ0iu620C55bFYzBL/g047 BhrTK+HrDsxHRVGSnHtOHeFVYOk0bsVss3sa1rKTOLGjSepAXfDHwYLUzmy9W2BldQh0j3dEVg3 jJJD+uIVSqybN7pbGSG/5JdoPLi1mOhSQ4JXk/H7f9fvzQ7o8qxa7F7KvpgXBJC0hnxJkduAh2g MyyaTtCvEWPbHBF8gkUdqwpxhHmONxH64erPr+8jdiSR+gdfjIYdsi7pZMQmT4n5TdLQhDh2XUn bpssOczuiZX11OAFojSZH0vBiLDZJ3xmKSYuZn8agdPiaYCPQbjgV/O+aq4GWbyfrWSAa8JXJB5 j6Xp+Up7ER+2fzi1v8Lt6xUrs7NIW X-Received: by 2002:a05:6102:fa0:b0:7c3:9982:67d7 with SMTP id ada2fe7eead31-7d072670942mr7469213137.16.1793815224323; Wed, 04 Nov 2026 10:00:24 -0800 (PST) Received: from google.com (16.49.199.35.bc.googleusercontent.com. [35.199.49.16]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-998d91d2a3asm2383636241.8.2026.11.04.10.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2026 10:00:23 -0800 (PST) Date: Wed, 4 Nov 2026 13:00:22 -0500 From: Pasha Tatashin To: David Matlack , Bjorn Helgaas Cc: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, Adithya Jayachandran , Alexander Graf , Alex Williamson , Chris Li , David Rientjes , Jacob Pan , Jason Gunthorpe , Jonathan Corbet , Josh Hilke , Leon Romanovsky , Lukas Wunner , Mike Rapoport , Parav Pandit , Pasha Tatashin , Pranjal Shrivastava , Pratyush Yadav , Randy Dunlap , Saeed Mahameed , Samiullah Khawaja , Shuah Khan , Vipin Sharma , William Tu , Yi Liu Subject: Re: [PATCH v10 00/13] PCI: liveupdate: PCI core support for Live Update Message-ID: References: <20261013162529.1928093-1-dmatlack@google.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261013162529.1928093-1-dmatlack@google.com> On 10-13 16:25, David Matlack wrote: > This series can be found on GitHub: > > https://github.com/dmatlack/linux/tree/liveupdate/pci/base/v10 > > This series introduces support in the PCI core for Live Update, enabling > drivers to preserve PCI devices across a kexec-based kernel update > without interrupting the device. This functionality is critical for > minimizing downtime in environments where PCI devices (e.g., those > assigned to VMs via VFIO) must continue operating or maintain state > across a host kernel upgrade. > > Specifically, this series allows preserved PCI devices to perform > uninterrupted memory transactions (DMA) targeting system memory > (specifically, preserved memfds) across a Live Update. These devices can > be behind a bridge but must not be VFs. Support for P2P and VF > preservation will be addressed in future series. > > Series Overview > --------------- > > This series implements the following to support PCI device preservation > across Live Update: > > 1. Set up a File-Lifecycle-Bound (FLB) handler to track and preserve > PCI-specific state (struct pci_ser) across Live Update using Kexec > Handover (KHO). > > 2. Add APIs for drivers to register devices for preservation > (outgoing) and for the PCI core to identify preserved devices > during enumeration (incoming) > > 3. Automatically preserve all upstream bridges for any preserved > endpoint. Use reference counting to ensure bridges remain preserved > as long as any downstream device is preserved. > > 4. Guarantee that preserved devices retain the same RequesterID (bus, > device, function) for the duration of their preservation by > inheriting secondary bus numbers, subordinate bus numbers, and ARI > Forwarding Enable on preserved bridges. > > 5. Guarantee that memory transactions to/from preserved devices are > routed consistently by inheriting Access Control Services (ACS) > flags across a Live Update, from the endpoint up to the root port. > > 6. Modify the PCI shutdown path to avoid disabling bus mastering on > preserved devices, thereby allowing preserved devices to perform > uninterrupted during kexec for Live Update. > > 7. Provide comprehensive documentation for the FLB API, device > tracking mechanisms, and the division of responsibilities between > the PCI core, drivers, and userspace. > > Merge Plan > ---------- > > This series will be merged through liveupdate.git, matching the > agreed-upon tree in the MAINTAINERS entry for PCI LIVE UPDATE. > > Testing > ------- > > This series was tested in conjunction with v5 of the VFIO PCI driver > series: > > https://lore.kernel.org/kvm/20260714151505.3466855-1-vipinsh@google.com/ > > The full set of patches used for testing can be found on GitHub. > > https://github.com/dmatlack/linux/tree/liveupdate/pci/base/v10-with-vfio > > Testing was performed using the new VFIO selftests: > > - vfio_pci_liveupdate_uapi_test > - vfio_pci_liveupdate_kexec_test > > Both tests were run in a QEMU-based VM environment (using a single > virtio-net PCIe device connected to a root port to exercise bridge > support) and on bare metal using an Intel EMR server with 8x Intel DSA > PCIe devices and 1x NVMe device. > > Future Work > ----------- > > Please see the PCI core Live Update Roadmap: > > https://lore.kernel.org/linux-pci/20261001232133.560284-1-dmatlack@google.com/ > > Changelog > --------- > > v10: > - Save and restore the ACS Egress Control Vector along with the ACS > Control register, sizing the save buffer from the HwInit Egress > Control Vector Size field (Alex) and drop Bjorn's R-b tag > - Make CONFIG_PCI_LIVEUPDATE depend on 64BIT from the first patch > rather than adding the dependency later in the series (Pratyush, > Mike) > - Reword kernel-doc comments to read better in the HTML docs and > spell out "reference count" (Mike) > - Replace the version number at the start of struct pci_ser with > required_flags and optional_flags, and record the size of struct > pci_dev_ser, so that the PCI FLB ABI can be extended (LPC BoF) Hi Bjorn, I am planning to target this series for the 7.5 merge window through the liveupdate tree, as we previously agreed. However, there are still 6 patches that lack an Acked-by from you. I believe you might have reviewed some of them before, but the tags were lost during subsequent refactoring. Could you please take another look at the following to make sure everything is in order for us to merge the series: PCI: liveupdate: Set up FLB handler for the PCI core PCI: liveupdate: Track incoming preserved PCI devices PCI: liveupdate: Document driver binding responsibilities PCI: liveupdate: Auto-preserve upstream bridges across Live Update PCI: Save and restore the ACS Control register and Egress Control Vector PCI: liveupdate: Adopt ACS controls in incoming preserved devices Thanks! -- Pasha