From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A9A241A785 for ; Mon, 27 Jul 2026 17:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785174794; cv=none; b=uY9AyQcCbNWFuWi0J1xd6y0CLu8gTplU9JhWPZQ2fYBuhEeXvcfhZ7FgwOFni3wAfIZLMKTyax95CRLdeCNFs5oddW44pas1HuJJzv3pLJ7GWSLIen+Cnja+O0CCeT2Oy+0WgZnM+jLtPtpGzBIdx9QsgUYVPpk/u95SXQ+Az64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785174794; c=relaxed/simple; bh=lheKOcqXGqvOyWuVJbHt9u4pRy9TVqzwH9e6lzBPJbU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jz51wLwWLArfGPcpTa5Z64t5KD5V5ZH3ZQNCmBhVO1vkStNivUlrvUlnicizljn1YF2Bmjq0KElcX928BzTNhc1Yz+qGNXfnu9hn73OUL2fBG5JHUqsX3nsEl/dXodK3gDyyTmG6B+1MZsxSph5ChIsgvLWusEYx9TPXk5CouZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=E4ynvVIJ; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="E4ynvVIJ" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-84e84a6c4bfso138207b3a.1 for ; Mon, 27 Jul 2026 10:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785174782; x=1785779582; 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=HkPvk2eUGVnaH519Z4bYiGg7FI/KZRoqTARHHR55Fmw=; b=E4ynvVIJ5U+Q1Nv8MA0mEejOSSBSizcI391zZLi7/rYybQCtmfuJ76gFII5incykmw 82bU1QYC1r+M1YxEYzCeVVOqUhxHb1oIo4hB9vdUwvWd7XbREFqwnKLgQXg4YV6taLPz QsFwQaTioE6p1rsr2nWkV/LhMSoYuCTvILnSd19HYZU4aEnup9ZguTJ3z+8CLQwC1zps chioBa/uEw0H7OImQrNeGm5iUEVRviW0sgl11+l5l1HOlEwMAQUwxN+Fci2LeR7K+gUd 6GpMO+wmPPDorTVXeuEEtqib7n6HCk5dAwTW8MO/RGYmiSf6JRhmbuW5Fem0sqfLVvpb A51A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785174782; x=1785779582; 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=HkPvk2eUGVnaH519Z4bYiGg7FI/KZRoqTARHHR55Fmw=; b=VwR1vLLjBD1NxZy/gU0yXvp9DhnKxAY2rgW60TXZ+VD+OKTkY8vRJC1XBNb6HpsNgN BjuiQfjBASiRXxUfYDjOhGfIdZhs9LrD87d0TYZsv5WI8ljKpU+Y3vbpWpfjX1wCYrRM REDarjjbZYChWZg4PpYbVunqwkYXmW8WfYIdwlYXxGdP/I3n6wyc1QVubwWy7pnQtc05 hDO4aZMPFqkfpCI+bhxy116UH6LKERuYJoiS8Wqmu4ovLKq+bXSZb9E+xNu1M4zmNWD4 eGCe2+WPw54G5pYWrKiyI1NHL9UaUxyUMrEq6/EfEaWcLM/ClYxQc61p8AnybKPDRZqj TW+Q== X-Forwarded-Encrypted: i=1; AHgh+Rq6uc6oyS/DQfMK67ko+rS5LvVyErdqw4gkO929w8ym1RVwU2TsxhpuMweb9KrsuXNtLZez5xMC8LLeTY4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2zYlUk82laMdVcqWRwn9Su7tvnVuHn6Ea0SF4ieciPPCLMd6O b8KCVZEYwidOf/g7stSRqUGc81ia7OeqywBF6+8j9Bi4cOFK4nSBDpCBfpJqUTkkOQ== X-Gm-Gg: AR+sD13POBPse7nzSdr/6wQepewETUMiTV2X4G4x0jQWCPfcQd3Ej8b57f8T+vEyyn1 2NLj2pwJ0L++LAGpglEV+0HvgTeeLHKEDunAUQKh0cT93uqw11e3stfYuQevJyGXQW5s5E+C3fH y2rj4WSQ1Te403JXu/rE440VkNAbjHp5p0w0YJ202mp5xpc+OkYN2AzOlC+Ej3ia1VSjwDS5L3y ztzdoQuLyJ73I6cqGCThdiqG1EA/OIFMKn3hSm2Bv5pU1MrN2aGQ8x9f0HHwWNsKbs/ksuSvIoh YHIenmvbAWyvNGxdP3StfMmTWPjIFL09wXArF0deA48GNv/l6bqAo1SUacg9VjPYJ2pl1be9JMs n+tdApd7r6e74SUrwrv1T7GBRc3wP6MreHJ3Aslh8iF2p0w5Gce0wNAn+xPeuPiwhnroHLzAv5w R8sjhEZjXabnIoEucWEMEg+aUDEtLo7iePEaxjgy7s X-Received: by 2002:a05:6a00:aa06:b0:84a:65fd:950a with SMTP id d2e1a72fcca58-84e8d3ab7b9mr351943b3a.29.1785174781958; Mon, 27 Jul 2026 10:53:01 -0700 (PDT) Received: from google.com (56.149.168.34.bc.googleusercontent.com. [34.168.149.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e532590bdsm3400120b3a.3.2026.07.27.10.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 10:53:01 -0700 (PDT) Date: Mon, 27 Jul 2026 17:52:57 +0000 From: David Matlack To: kexec@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org Cc: Adithya Jayachandran , Alexander Graf , Alex Williamson , Bjorn Helgaas , 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 , Saeed Mahameed , Samiullah Khawaja , Shuah Khan , Vipin Sharma , William Tu , Yi Liu Subject: Re: [PATCH v7 00/12] PCI: liveupdate: PCI core support for Live Update Message-ID: References: <20260710212616.1351130-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260710212616.1351130-1-dmatlack@google.com> On 2026-07-10 09:26 PM, David Matlack wrote: > This series can be found on GitHub: > > https://github.com/dmatlack/linux/tree/liveupdate/pci/base/v7 > > This series introduces initial 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) to/from system memory 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. > David Matlack (12): > PCI: liveupdate: Set up FLB handler for the PCI core > PCI: liveupdate: Track outgoing preserved PCI devices > PCI: liveupdate: Track incoming preserved PCI devices > PCI: liveupdate: Document driver binding responsibilities > PCI: liveupdate: Keep bus numbers constant during Live Update > PCI: liveupdate: Auto-preserve upstream bridges across Live Update > PCI: Refactor matching logic for pci_dev_acs_ops > PCI: liveupdate: Inherit ACS flags in incoming preserved devices > PCI: liveupdate: Inherit ARI Forwarding Enable on preserved bridges > PCI: liveupdate: Freeze preservation status during shutdown > PCI: liveupdate: Do not disable bus mastering on preserved devices > during kexec > Documentation: PCI: Add documentation for Live Update > > Documentation/PCI/index.rst | 1 + > Documentation/PCI/liveupdate.rst | 29 + > .../admin-guide/kernel-parameters.txt | 6 +- > Documentation/core-api/liveupdate.rst | 5 + > MAINTAINERS | 15 + > drivers/pci/Kconfig | 15 + > drivers/pci/Makefile | 1 + > drivers/pci/liveupdate.c | 910 ++++++++++++++++++ > drivers/pci/liveupdate.h | 68 ++ > drivers/pci/pci-driver.c | 9 +- > drivers/pci/pci.c | 14 +- > drivers/pci/pci.h | 5 + > drivers/pci/probe.c | 22 +- > drivers/pci/quirks.c | 58 +- > include/linux/kho/abi/pci.h | 59 ++ > include/linux/pci.h | 4 + > include/linux/pci_liveupdate.h | 77 ++ > 17 files changed, 1260 insertions(+), 38 deletions(-) > create mode 100644 Documentation/PCI/liveupdate.rst > create mode 100644 drivers/pci/liveupdate.c > create mode 100644 drivers/pci/liveupdate.h > create mode 100644 include/linux/kho/abi/pci.h > create mode 100644 include/linux/pci_liveupdate.h Bjorn, Do you have a preference of whether to merge this series through liveupdate.git or pci.git once it's ready? (Mike Rapoport asked if we could make a decision on the merge plan.) I am leaning toward liveupdate.git: 1. There are some LUO core changes around how FLBs are refcounted in the next branch of liveupdate.git that this series depends on. 2. We had previously agreed that the files covered by the PCI LIVE UPDATE maintainer entry would be merged through the liveupdate.git tree (which is the majority of this series), so this would be following that process. PCI LIVE UPDATE ... T: git git://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux.git F: Documentation/PCI/liveupdate.rst F: drivers/pci/liveupdate.c F: drivers/pci/liveupdate.h F: include/linux/kho/abi/pci.h F: include/linux/pci_liveupdate.h But if you prefer landing the initial series in pci.git I think we can expose a stable branch in liveupdate.git to handle (1). What would be your preference?