From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796232129; b=1ErjBPgKN1kcBDbyvX2CNtPSMtMcSze8V9v6NeHfLOCF5CK7c5j0HQCr2hn3If9KBUAm WllMimfr6r+UWt+ksUX/xXB4vwZjenFXdpQcmxfyTMOtmO2im4kyzvh/gXRy1pZDfk0fU zbu66GD/MDr3tQgxist8LV5u/TKmXNEuoX+VYdwoIpokbg/R107bl169LpQDqX+6y7IRp Yp29UtUAnR3CF7+Mq7i419qq7AEKgUjX65SZ+8cRKIqeOF0e8lx280bE/nW+/e0oPj+Ia PLYy/XCQunuj82brBnTTmVcquThURAbNBvqPwsALMZJPb1e4C8JQDvqw2ghZP56qMgg== 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=gI5PfwirSaRGgjV+WOBWKbezpEqyQmHPI6AF3egCOwYVORzdTnx4K0Pnz0xBYYu/JMyy +O1HSNrRVU/AQRy7srhw280Y9zXKne4/e4K7L6QEAZL26SfFEMTCl59/+q6IVp9D1A+Vw VJZ6424JVFJimwjaHnAhoHFmUw9QRn8qYGXnetLlcDEF8OMx8Hsm/3WWsnjM9SWkxuSVQ ke1ZuFBUzUk4wIAKHT1oMqkyTW0YeCO6O0ch+EGPokWQ6cgw26id6fVBXZb3b4NqOkrHV el+AeRkpNjR/d1d6jlU3UUdqoE4tMs1iMKKk8Pftv8rdoXfVCafl9QnIU6n6hT2Ammg== 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.176 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 C51F6606A323 for ; Wed, 2 Dec 2026 17:22:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C51F6606A323 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-f176.google.com with SMTP id 41be03b00d2f7-cded3aee68bso30731a12.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=YguXLwVSGLgRMa9FDey44LDsN5YZod+DVSoblOhJPo8P2DfqgF8rIGU+ym5J8xohQT h1bFPvespo8xiLjxFy6kE1sUqy5lq9xfYS9PayeSx3T9hZg7Ey56+D7LpHybZgx7OcQJ YhiheeDCDcdA4j2qPIhroYIR214AjHwpubojE2U+YSC07Do1IMNpyg7Q3F9scK1mqYI0 FrE6w89yXhAx7QkWKvyz6W3RFib7g8uKesF2FHO6CriYydmUBgKQx/Fzlup/JRp7+p15 D05Tws048Aeu6MsouJLKeo5HIlM4rEyVg7yguWqCqrRXWjO7eD/2dBmiHLMyyseImTwx l16g== X-Forwarded-Encrypted: i=1; AL+hErEMQBjhExjRwFCsZ8Zi3Ep3KyeDzcmMtSq+84dxOrMf1w/erFLiKnG1moPrQerU4hNVWjWyONeceWUDSo8=@vger.kernel.org X-Gm-Message-State: APuU4Z/SyuLuCMI0rT6zA99PcwplUjscVVfYY/v3/YfNx8lhQ3wUCup6 2oNToTJvMiYL+qgjvcJP1V1otYwbQSGWF6pAzon/XwJkCdvFCrLgDXxyFMvwEo4G+A== X-Gm-Gg: AZFdTZfT8dC6mFM7bK+1eK0plE+wEJ/2JqHy+5FIdJquF2JGNR2gU+8EjksS6JA5WoC GNnTBCfC9bx8RPNNc7yVVjhf5h0s43y7elNwu37ETsdG1x4Oz58cRhlggv9Mg+ibCyPEKHJd6Mo 6dPw9mlDZbJZeyp9SOhThc06E4SNWy32E0p/YPNbyfWQu4Lb0UnYOROuOFuNWqgZ7uyz6gvmFje +TbukMlYGCh6BDS80jObphmdeEJXHe/lp3AaWchZfXcblJ9tGKX4YfkwtliO1ejv68jrQF1CpDP +EcM0mKAwwE3mZmCgsWzUptPM7rLFfC7WG0NpR+A4G8HZNIuQKyafzlHh93lDJAYdHYTEuNeGYv 7GTDDljZ2lLMWlOHI+zSmiefQy3JBLDj+q7lFg7snbx+hoDBWqszKjiZmhx6B67EB8RpvrprMEU eAUHBX92nfLkGtPd1BNkdvT/WJLY/o1dYGZyisVqEliQIXGzhw0JWAxahnpXUR71xeAoRK8hnmw sOO6++EKHxe/e2XSD9P9okl92s3LIPWhNUSnv9b7ivnSpVGtzulxuH3KJkaRtXzrXOBjtP4gIyV pmIFkZnIe8Jfd7cunaFGo0UPZkUkqefLe3qAhBDtAYaloys+cuafnn47Wb6OTTdP 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-kernel@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.