Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796232129; b=nV5R8immrHUcmQ2BS6Yqbu368DRYTzQppOC4daHfsdxOwejDvJZlOsm+YjzEerM99UmC tc5n+RQV4bKLK47lW5qov1si6Jb9C5gfKJ6KuoHeIrhf/RyCs7RTWzNP7GHDlHwutIZex Xq8D67K6B9MK3KMRQot4u+Av7mOx8Jc8SlKERgQZogRAlk3FpZS0XlkpKfyV42ewep5Uy QfCKKxmjtIUUueOsXwI94Y2fS/Ixs+PwnsLBwJ0wiWU5TWbLXv1OEuVM7vYXg86eiwDmS TzFeOpv4tF7qvOuubV7vKqO+6Wi81yUjRlK4luvBamnTR1k/ES1FSq0d4pic0cvHn1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796232129; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=aN6SW/LpkVOqBI9Qac3D9HOxLsdQftX6fzw3oyIc8z0=; b=0+eN1+FlM/OieSDIMAUb5teSeJIKBwWIni9DpGzFEaFkYwzgGFjiL9TF6Sl6kJPxskST 5IG4WOtxHn6BSqnGUTVymF8FFnOf773KfKh7+V9+W/9tFGiuskCShPqleJYQmArtePs5C BYADOE5iDrLbxqdOlwTvEC99Wd1xOCNLWuG8+rJ+/cpEHFtYFOUtNB12wGCQxbJ2f4gtO S+q4vIr9apl3afy+TdPhyqhU2D4ZkxOVZWH/YGY7z0Wc0uHhq/u5TkzHef1Cn9JhvrgKE lwnZKHA029T2HiZsjpX7NVA7oBMFygqUbbL0/rn5rcMUORsq//SZwta5K8jo4bz6Y1g== 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=LPgqCb6w; arc=none smtp.remote-ip=209.85.215.182 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 C054F606A322 for ; Wed, 2 Dec 2026 17:22:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C054F606A322 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.a=rsa-sha256 header.s=20260707 header.b=LPgqCb6w Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-cde4b4e936fso20513a12.1 for ; Wed, 02 Dec 2026 09:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796232128; x=1796836928; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=aN6SW/LpkVOqBI9Qac3D9HOxLsdQftX6fzw3oyIc8z0=; b=LPgqCb6wq6IvRT0Rb1XyK7JL9MYUt6l47FUxmAjKhXybYSPI6WRsa1HEa4PG75MDJx Vj3pTlthcd3+DLyeoxoBe7UGkw4ydxeqS49/O8p8ci1YUUCO1VWp7rkldjphFq/ErLWx ZTUyzm2XChbwPNAOLiFyny+d9+K4GYxeLSiurwMRy3B7D/8aQ1pAo92nD/bsImJNlmJs AF1+0eLYXZdxIAFGaJ3ESzNae+US3HVRpzxxFn6wiQjmzMdBckEJldx1r8htST8t0lgB lLPNaO/LXISp2PbMu4sMJZa6m7XSBP6X96OhecverOL+Iba3prD/yQMYBR2m8AeeIXr2 K2tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796232128; x=1796836928; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=aN6SW/LpkVOqBI9Qac3D9HOxLsdQftX6fzw3oyIc8z0=; b=d6k7PYIXvpiKWWtoJRwAvLgvENIkXuoeZLjoT/V8x9dbcUO1TMEYwF/SiJv59zt0yR oYOFfZ/n+qaBVLJKrHZN8geBNLR0theDqqNfHqMBI8sz3mJe06DgD8BCe3oaC6Qh8VE0 rijO8vRwOprfqBGag9DXnyj1XG7aKv0kodv7HyUGlMleGpJ5CP0334/JehA7pSBBsxQR ju4vKLpkntcO3tCUh5bWkJr1QsgwmGIEmiqrVUg8kOEFhU7tuHHiR2wszTgzYQZQLKeq DkbygSapEATXVD6wXFA/2x6DilUYI4PnLHDulepEhJoXWMN9OfCFk149kz96oYH11cTN 21vw== X-Forwarded-Encrypted: i=1; AL+hErE+6wnDGUtq8fS4BPE89xcEz7L+Dxoqro+nZAz223VHHZHYfRpl/ne4tVBj7a1IXmEITK7mic5hVKCiNNqfcWU=@vger.kernel.org X-Gm-Message-State: APuU4Z9pnYadIRXpoVMlWlBMxXXSXr5FcjmE0M3N331exRwECXVOsUma I5Wb31y9j4CkgZyEswH9GkQSPYxz9t6staK511uJ0CYhWaLPipcxImAX7OIAV0I7cw== X-Gm-Gg: AZFdTZel1nUyc1MPvv54T3HUoDVu+Pm5/qB5EHNMfbZQBxykuPFzFF4j2y+jWIjcg+5 tTpIBapGj0Bk0+V9F83UfwGnKj61xBNm5YXffDocCoExFptvXeuVff8pJz35w+GyD7L3PNsehBw U/h32/mphl9cM0pzpRR+gdblOVzTuCyrNpEjdEyGITU9zD2GP1KkXwuh551GFNd3EA5VqxZ1YRX 2Z/vFOnzsuCipa/5E03El5maIz0k19Y9vkqqNghMfigQTynPxA5/x30hfoSokBBXa39CzSNBFI+ FNQ9n21S8xnLRJzwNN+ZpY1jH5GV3IPVoSUGNI8yN0MXJZr+mYDZVw/fq108kqRzhyAMgiH1mEX 1o5xhXxisilTSRQjdLrhoBjZw+Gn3LQZt/xUKtJA9ZbbdUFtLJX68S7xfWILA9HwJybYlXpoaXq N/NqGbXg0tGhOuiUZHrWPiXIQa9GdAs9UsfarBBSzV0rfJPoUMVkmgboKOst48M639WWq6IPPVw 4ZDjzwvVqLbT/9b/xzd0U1Ju0RuCFLI4fZoJfkxxoK3AQdTbet6CVXiwL3GoVDgbn3rM2LRBfzV Rpe4z7/gOHImJFdqvLQEXCLGI+EK0Nv7je7iKvW0ocNdFuo8Z+UZA73CEn/4jpXx X-Received: by 2002:a17:90a:e54a:b0:3b0:9310:b255 with SMTP id 98e67ed59e1d1-3b41c961506mr20050078a91.36.1796232127225; Wed, 02 Dec 2026 09:22:07 -0800 (PST) Received: from localhost (33.79.127.34.bc.googleusercontent.com. [34.127.79.33]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7649f12sm115916a91.2.2026.12.02.09.22.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 09:22:06 -0800 (PST) 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 02 Dec 2026 09:22:05 -0800 Message-Id: Cc: , , , , , "Albert Ou" , "Alexandre Ghiti" , "Alex Williamson" , "Bjorn Helgaas" , "Jacob Pan" , "Jason Gunthorpe" , "Josh Hilke" , "Lukas Wunner" , "Mike Rapoport" , "Palmer Dabbelt" , "Parav Pandit" , "Pasha Tatashin" , "Paul Walmsley" , "Pranjal Shrivastava" , "Pratyush Yadav" , "Samiullah Khawaja" , "Shuah Khan" , "Vipin Sharma" , "kexec" Subject: Re: [PATCH 01/18] liveupdate: Export symbols needed by modules From: "David Matlack" To: "Christoph Hellwig" , "David Matlack" X-Mailer: aerc 0.21.0 References: <20261202003955.3607156-1-dmatlack@google.com> <20261202003955.3607156-2-dmatlack@google.com> In-Reply-To: On Tue Dec 1, 2026 at 11:18 PM PST, Christoph Hellwig wrote: > On Wed, Dec 02, 2026 at 12:39:38AM +0000, David Matlack wrote: >> From: Vipin Sharma >>=20 >> Export liveupdate_register_file_handler() and >> liveupdate_unregister_file_handler() so that drivers built as modules >> can register Live Update file handlers. > > I don't see any such driver in this series. And the diea of allowing > reandom drivers to register this information feels wrong. The user in this series is the test driver added in patch 10 (tools/testing/selftests/liveupdate/modules/luo_pci_test_driver.c), which the selftests build as a module and load in the kernel. The other user will be vfio-pci, from the VFIO Live Update series, which is where this patch comes from: https://lore.kernel.org/kvm/20260714151505.3466855-1-vipinsh@google.com/ To address the concern about random drivers, I see two options: A. Restrict these exports to the modules that need them, i.e. EXPORT_SYMBOL_FOR_MODULES(..., "vfio-pci,luo_pci_test_driver"). B. Make the test driver built-in, behind a Kconfig option like the existing CONFIG_LIVEUPDATE_TEST, and drop this patch from this series. vfio-pci would still need exports though. Can you say more about what your concern is? Is it mainly about which modules can call these functions, or about drivers registering Live Update file handlers at all? If it's the latter, I'd like to understand it, since that's how drivers like vfio-pci are expected to preserve their devices across a Live Update.