From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794004152; b=cpEos0g50O4tNwc2LTXRXrsDRfYK/s5TuAdBx0F5Q7tY0oHeqOBPSNiYl87mvytgkHhn Yjo2P/BtgsNkrbYt6iMmI2eOpm1wZUDGMaZnuxxFO0jsZn9eSoP5jFBWB/OXTMkCDXVs4 QzZF/DedSTBWI/mFz0jAUhfXOqMQBKfoKRJIm2ew0LGFyuotMORVnBfwyz3x9PmHBKX0/ iMA744rvIXKccG9uAZc0RB5vaTnzOPKhR7Be8UZJTntwhL9UQ6skJ7JNBHVRIpIc3SlbY x+Xv4r9vQ2nEQp48Iece6wj8TKIXBT1wAO9ZDqoCo4+nraVu9bl8OKgqtnwCAWyvJ3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794004152; 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=i6wtLwteYwyUZUWdoRocIhX8iiQGzMdlm5waC4g0QLs=; b=CLlcOnPF9dmKzSYbb3Hcc62HHlgQ+O9HzuLWZa8IK/o8C3X+dS9CDZy2riVx6hAn89gy 5eZenXzeQ80gcD5ZMYs990fHFObt+hg7w9Zp6MwzLmllhTukJTzcv6qIVM03sGRntD8cF SpFF2VFh7TsVkrBSgbhJojPuoKJ+TbEV6qDVCSsJfsxJwCcRxnFWDQOhrxIQODXFSBvPo RupCIWmP3C8twjda41wfkLB4mqFrV9/9reG5itx0dQC/snbnjWOj4+5etfU90R2TRonYp 3G6lTSkBJu/bCiKHqYaxV7josHh8eHEBKclo+DtVMYMeqt20uiUfr2f7c7L5VMH556Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gkl+CmfF; arc=none smtp.remote-ip=209.85.214.179 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 E2713606A32C for ; Fri, 6 Nov 2026 22:29:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E2713606A32C 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, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=gkl+CmfF Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2e9f6a16afcso1485ad.1 for ; Fri, 06 Nov 2026 14:29:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1794004151; x=1794608951; 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=i6wtLwteYwyUZUWdoRocIhX8iiQGzMdlm5waC4g0QLs=; b=gkl+CmfFQ+Co71nT6Egy2HcSuWbxjmTrMcP4xLom+yPt7cEbNxsDoECW+9ukC5saGE +AySoNHT/voHJzM5UxjovhfbBA4XVMmOzenTYYDHMTsRbS8yBDI6QJCC/DhqETSb9rfi DOMe5p5m8Jf6QID1xENOM2zAR1ZJEac4eAVE38l+dObMh2ofbhr/jGqeJ6w/wQziIRyG 7e0XENuBRYE2xUyk1zPMSoXhVrt2mPi/FAktijRb4aYgmhwzysr64/2u5MQmgud0WLGQ edRQIb+VHahReTzYz8nVaVx/ZTWIZiGWFzXVnUzS8RaVeSJDFuxuhL+tw/ESiAOBb6g1 rz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794004151; x=1794608951; 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=i6wtLwteYwyUZUWdoRocIhX8iiQGzMdlm5waC4g0QLs=; b=kiKnjYUvichcXq4HW9Uzq3hBcJheDvPUOXFeZ1U1z8Jn6oi+MRAuj94ZJRSTX4Pt+w CgQs5L1clKFkzwFflr4iviicYmPrt3UsOo02eaLlarf5vK7GHWzdR8gENs4Sm0WLanGr elO13ovxMpJOVCy3uKHLskgW7/W8bh9gHi4Ss9O2yR4v01Tqhu/SATWMn4msW6Ci5Ssm /Pv+M/XlrylR8qLLyO8aExPfKO+8JzBu3uSX8DZTvWAzXua1I5oht3TjVISlmCut8nFA XUwMIzilnpgCckM3t4UWlSLfHBFzycoEcJN6DMIeGYcpn4sxkTOjyI2FjbHxSowex3qN o49w== X-Forwarded-Encrypted: i=1; AL+hErF6+IvxOMBJsYoJ0rPPnXSB7KlMTytz3nd4dhQaZw8yJE/M7yFy9Y4n1YbiR6MUCsIGgh5dIMa0nZKSSa9OjQc=@vger.kernel.org X-Gm-Message-State: APuU4Z+oPPxLLHEh//hGBRJFX+d+qbDqHcQXM7uDr84yuNLeBUHRZ/pr 0if3eZJNIBuOZRMtg2K7jCWMKYSaWieUuDuoz/I6X0TRYG5dPBfLgQcZ5YdjsImAhg== X-Gm-Gg: AYBFou3OfyQj8Tayns+hrDtrBKakYw/Numct77jUVhaTx5kUQ4F6IxKfay4w3QNZ3P+ CC3V3pxkJBxaPI4QA3EyOAR7d6YqzkfFTn0sNCx7s316ww0k2NmsW5R7B0XJM7fQtgZHiD5kt4t su6+FQrNyKEgjcujlQ+F6KNSQW3xziBVb98o3pWnmW357TRrulmilXyA4mj00shecpA0gGGFwW1 AC17iAjU4X8BqzeMrNaLFKfwWVpU48V/YqD7OgkYzyrKXOtIhlmoj9OdlChhMMHGUBCPLCOX0VR 6nooVECOY3x8XNZp8lNugKRtsuxajnXpJcaWy1UAx4y4lOW8+ZYugIIcxua/EUdGkgjS67wLFG2 DQqTxfCzTrCd1cK0IWtrYyeGZWWS/+qfumi2e/6RjVTlI06EBmFpPJVrlPtRmHWtSH2/JYbOjxD D26yfHx41IOlWRhDRz0/RQ6nquuQU/TiknLfXRQvrcXZzFQVm+d/2eNhvlCswwA+r8OM66mTVg0 G+nVxQGTdx9bTuALAkFsnb296kJhgR3Z2BO1FyaqaKOjd1wC2MkF5cCf8FPAk1vXtN+F/GaabkQ Qe5atYIckQegV67KpybSfa3KUjpZmU+B0yyoH7a/jR7Q0zV2DV2awH4Cph158EEtyOyzc/dvlPJ 801te8ELJZ82hmzdZDWsM152nfNfS+P5ciqHEYmHA+DI= X-Received: by 2002:a17:902:ef11:b0:2eb:188a:1c06 with SMTP id d9443c01a7336-2ed6a865b76mr263955ad.9.1794004150728; Fri, 06 Nov 2026 14:29:10 -0800 (PST) Received: from google.com (25.75.145.34.bc.googleusercontent.com. [34.145.75.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b0fc27e829sm775868a91.0.2026.11.06.14.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2026 14:29:09 -0800 (PST) Date: Fri, 6 Nov 2026 22:29:06 +0000 From: Samiullah Khawaja To: Vipin Sharma Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-pci@vger.kernel.org, ajayachandra@nvidia.com, alex@shazbot.org, amastro@fb.com, ankita@nvidia.com, apopple@nvidia.com, bhelgaas@google.com, chrisl@kernel.org, christian.koenig@amd.com, corbet@lwn.net, dmatlack@google.com, graf@amazon.com, jacob.pan@linux.microsoft.com, jgg@nvidia.com, jgg@ziepe.ca, jrhilke@google.com, julianr@linux.ibm.com, kees@kernel.org, kevin.tian@intel.com, leon@kernel.org, leonro@nvidia.com, lukas@wunner.de, mattev@meta.com, michal.winiarski@intel.com, parav@nvidia.com, pasha.tatashin@soleen.com, praan@google.com, pratyush@kernel.org, rananta@google.com, rdunlap@infradead.org, rientjes@google.com, rodrigo.vivi@intel.com, rppt@kernel.org, saeedm@nvidia.com, schnelle@linux.ibm.com, skhan@linuxfoundation.org, vivek.kasireddy@intel.com, witu@nvidia.com, yanjun.zhu@linux.dev, yi.l.liu@intel.com Subject: Re: [PATCH v6 04/27] vfio/pci: Register a file handler with Live Update Orchestrator Message-ID: References: <20261102153656.1431701-1-vipinsh@google.com> <20261102153656.1431701-5-vipinsh@google.com> X-Mailing-List: linux-kselftest@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; format=flowed Content-Disposition: inline In-Reply-To: <20261102153656.1431701-5-vipinsh@google.com> On Mon, Nov 02, 2026 at 07:36:33AM -0800, Vipin Sharma wrote: >Register a live update file handler for vfio-pci device files. Add stub >implementations of all required callbacks so that registration does not >fail. Register it with both live update framework and PCI subsystem. > >This file handler will be extended in subsequent commits to enable a >device bound to vfio-pci to run without interruption while the host is >going through a kexec Live Update. > >Put this support behind a new Kconfig VFIO_PCI_LIVEUPDATE. Initial >support is added for no-iommu model vfio-pci devices. > >Co-developed-by: David Matlack >Signed-off-by: David Matlack >Signed-off-by: Vipin Sharma >--- > MAINTAINERS | 1 + > drivers/vfio/pci/Kconfig | 11 ++++ > drivers/vfio/pci/Makefile | 1 + > drivers/vfio/pci/vfio_pci.c | 11 +++- > drivers/vfio/pci/vfio_pci_liveupdate.c | 75 ++++++++++++++++++++++++++ > drivers/vfio/pci/vfio_pci_priv.h | 14 +++++ > include/linux/kho/abi/vfio_pci.h | 28 ++++++++++ > 7 files changed, 140 insertions(+), 1 deletion(-) > create mode 100644 drivers/vfio/pci/vfio_pci_liveupdate.c > create mode 100644 include/linux/kho/abi/vfio_pci.h > >diff --git a/MAINTAINERS b/MAINTAINERS >index 5d1b58271989..167aa9d66ce8 100644 >--- a/MAINTAINERS >+++ b/MAINTAINERS >@@ -28662,6 +28662,7 @@ F: Documentation/ABI/testing/debugfs-vfio > F: Documentation/ABI/testing/sysfs-devices-vfio-dev > F: Documentation/driver-api/vfio.rst > F: drivers/vfio/ >+F: include/linux/kho/abi/vfio_pci.h > F: include/linux/vfio.h > F: include/linux/vfio_pci_core.h > F: include/uapi/linux/vfio.h >diff --git a/drivers/vfio/pci/Kconfig b/drivers/vfio/pci/Kconfig >index 296bf01e185e..e8285ad93a69 100644 >--- a/drivers/vfio/pci/Kconfig >+++ b/drivers/vfio/pci/Kconfig >@@ -42,6 +42,17 @@ config VFIO_PCI_IGD > and LPC bridge config space. > > To enable Intel IGD assignment through vfio-pci, say Y. >+ >+config VFIO_PCI_LIVEUPDATE >+ bool "VFIO PCI support for Live Update in no-iommu mode" >+ depends on PCI_LIVEUPDATE && VFIO_NOIOMMU Can we handle this dependency in code instead of doing through configs? Are there any build dependencies on noiommu? >+ help >+ Support for preserving devices bound to vfio-pci in no-iommu mode >+ across a Live Update. It enables a device to continue working (DMA) >+ while host kernel is going through a kexec live update. >+ >+ If you don't know what to do here, say N. >+ > endif > Thanks, Sami