From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D1C9606A31A for ; Wed, 2 Dec 2026 17:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UR+1NE0v; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=a1Um+q2H DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To: From:Subject:Cc:Message-Id:Date:Content-Type:Content-Transfer-Encoding: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=aN6SW/LpkVOqBI9Qac3D9HOxLsdQftX6fzw3oyIc8z0=; b=UR+1NE0vtE80ec cNkr5E6xZmCJdAJE0vgcppJGLRat/v7Dda0sv3ci97fOxFlj+KIQ2sfCPNSPi6jBn7W81QgBFNT/3 w8BmG4XCAbc+yjoLrTJUNTZRqDFHux4TV8pBT13+jcd9M0j6bSKEVxPs9meLDt3WdniGrjFxLQiVO 4/o/THOosaTbcc3XOBqQpaQ/KOt+gjtgipLFjU90TyIBUYP5GWNmKAPMJXg7/Rvzafoqbzpq/kVQi ySKcHBVJ2fd3AoLwA5JOBNLrqG609b8IcwkAoWWkw+ySocHxF6ZZAkc0f4bqMdrrc5C2qOl9vDqW1 2+G7oxzH+SBP2dPYIwFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYo22-0000000CLfI-1TE7; Wed, 02 Dec 2026 17:22:14 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYo1x-0000000CLct-3wOf for kexec@lists.infradead.org; Wed, 02 Dec 2026 17:22:13 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-3ae691283ecso45391a91.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=lists.infradead.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=a1Um+q2HaOSD4kTEZcxZJzjhQ4Kr3XCnGo6wtwnX+jiCkndYxEZAV/a0W9BeSTfrla WfxBFiD6HggzmnnHd7pS1WvZYR5P5LdmQKt8z9DTn/h3nPgIxZhC7hOkvtXu26KIiCCX LdlRvr8ffKsfhFYF/kPOmrPJPDRX9b3SeGSgdGhogLIbluwWu3n+Jm5W/fOFrgFaGP+3 LP+0YEWnclSJM41WDa7lW7sKB8yCj62D9Yhnt2Zk15/5HIKSj9EjLphEbp5shBv7152u zWv6HJCuIWhD8yuNv7cmVFok5ZvXxvbz5j55thYWr/vrodqviCwIuQlzDx8Ndih4wuzF cDRg== 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/LpkVOqBI9Qac3D9HOxLsdQ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YIgVa3m0hSqqwfEBdc7 qLQljMkNbugk1Y/VypwOGZL74GyfK8il4+zMWvQ5tln3ao4OuFu8dZkOuWBJE0va 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-Archived-By: 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_092210_037087_F9F58F0E X-CRM114-Status: GOOD ( 13.48 ) X-Spam-Score: -17.6 (-----------------) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-13.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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.