From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796232129; b=SJnaMn8LOuXPArqpTzz0iTyUs+ikE2t7r91UntscOH8Nc7BWiAjbkP9ux/GvaxydmQ5m dxW4lQQy9SG+FcSuXxZ7Go9ACJQLtHPq696E0RQf+Z75WZtS7tbSIvugGqPN0m+2dmcI5 ZUJb76Pa9daybwlWq0t/rLJlsymBA5LRx7B22DhMiYmIgBK3DR5/4YKYuDZtoarFBb3zr U3B+AB2OvJRnkyaUNQT/kT7MRoiEDnN7InbHMb+GU9Xi4uIwLBqZfJvCdziIvDoZGsXi+ g71z3o19NzedmDaCSRVYOha4czPT2wC+BAzgzo60/pflolow00iRtUUfgvTT5FWkucg== 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=RyHAD0uE+VpM4gU7KvfOM3+RfgSEr5o0q8d/N1glVxS+SWFP0QaDuG6k6hz2CQIWQhSL hHUe2Ail6Eglb75AmoV2YeYIbS3R+nLZVAH3i4jHOPZlGeNU9LnGVvNzNHIAssICvYg9e hIt6lsPkSAkTL2YsQByLf/cCTlcwzBapiZJox7bZDozTtYbBnYd0LhQLYL3wfdwMHoyqz MUQsRQKzEOfp3iU08Rsd2wCtYX/WQBx5OVCC1B2ccNNZgysBh3X4zxsTA1yb4liCGmHI1 8vLPO/hllLCIe0CbeF1EtD/uNGsuK1lCWGOEn/l9B+eJwiwGJQKagOQdFJzWjrGQyGA== 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.173 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 AA79D606A31A for ; Wed, 2 Dec 2026 17:22:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AA79D606A31A 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-f173.google.com with SMTP id 41be03b00d2f7-cded3aee68bso30728a12.0 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=052W/lqmH2rIXvQ1GMpXofGnmTPmKneP8q79kgWwyVfeMZdtLXhvoana+D7L8hxu0a x2hz36G7RTLZJu608HC2zG4dT8K+U1hz/QtLvsSNLoe3MEzd3nlYRdfPvhfaeOjvAHW9 lUC+XCEdTHgXZBGOHsaQxKv9IaKzsgUXmvq2OzqJa5I38UncEI5pHYsCHfFbo4JjJIl5 sE9kGx6ZUj/5jSI+Dwdz2Ls3dXGZSDGYAudJbdXsysyES7sIUhL1g5C7rDi3rHk/DXSS qMBmdzr/x/eSBgC4VnT5l1NopJFd8I5Im0QvwBXTb6AdjQHwP2PUoQaUf0ZdXJJSch5/ mdVg== X-Forwarded-Encrypted: i=1; AL+hErGeTnXT5RD0LF8tH+hRrOTkMFzw3Y/eivEUviVZ9sf96RcVkXzNKFRVHNiCT48Cpd5jrJQHmtXoo70=@vger.kernel.org X-Gm-Message-State: APuU4Z8FlIuXfY8k3TuwIoc4ozTJZsLAUwwnE3StUO8M61oJw8yECzlK TNmNQzf7iaqXjrMl5yKF7XA14ojTq9tcuYCdTU9vUglwnbXaJEPPT5Ua8svIQh4xaQ== X-Gm-Gg: AZFdTZcBEIM+Nlrdzbh/oB9DO94fytv+rsUbD3raFh3Indlnj71tOR2e1oDQ6liL3XQ Hfdw6vH1CO0o1lcLIMa2+9VNwGxbDqUBsgClLmU217B32P7JvCWEVRVTRNJEwo2oud0Y57CC5Km 2ycg+PRkFQSMw2H2DLQYDAx2vRP8nWj3ggDXTN1VtwUvSzX5OvpqlTCOTz6tb75/nCNQx1FlNHk 3QbCgBewD8GDey/lfnm+OCmDqGh5sTPCG4MIQ7xnFhGq4XehlOtj7KGTxAc+3KD1RAKYShmtPIy n2/43XoQM7n/PuY/c51t/O/ZyVLCmWHuLrbya1ChwU/QcTPcOyyy1Ne3S8kBqLHjuXRBYjjK7Ip Ogx20rOYvVcfWoNC6KxyFJTIOWh2gx0J/RBq8oi5rPrQoZsz8Ju4yl6M1aAMuIJ1WheunUSEoxR dDoyGtONV+1Lvt+hOOkGHs9ShMfCtHshkNnaYba1gfthXGZgINbO53RtvyKQr7ZezEGWpGVJLT1 9Hs0oywnp/l1WQts+aGeyMt6uEVNQTtzfczHU8GEBn+Xs/8LX9I3P3+QpMBpL7vyRoy97I4cEMS EgKMT6nMWRrQs8MYo0g3GMpy6zbk8QfRZVtvYbl/forXBkgni5omiHf77O3XJbs7 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-pci@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.