From mboxrd@z Thu Jan 1 00:00:00 1970 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. 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 29471606A31A for ; Wed, 2 Dec 2026 17:22:21 +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=qnhluBH5; dkim=fail reason="signature verification failed" (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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To:From:Subject: Cc:Message-Id:Date: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=Hft5L+hVDV9O2TZrvfE35j3Am1gc3N2io+qFKTyLRuY=; b=qnhluBH5nJjAOXHo2OeA3HHVoo 7DGU3KxVr6uQ4ZYvPbyscv2mtwUH7UDwk4N0a6qw0M0/4kbOiba8JaAXfzZvkP/GFPIQ6sWKVYqjo if68j+INgTcLrGh9hyaINgfO+UyyV/YFljtlRRrbLeBE/Nhe7dUOiFcuuZ6uucJKm4SbLthVA0P3L SVtRc6OHcpKEde2IKsb9QfQlX4f68/SGDUATnoQcGx9l9bcbloWZ1h9ctSWYCq//971oGUd2RdGgw KbO7C7QNMBBzoudl0i2OrAVqJ2+e1DPG8AHmzuS2619M+355WiQaY4U9ntLEeB7YJ2rizCiAbdtqf Kh3bOaiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYo22-0000000CLfD-0jr9; Wed, 02 Dec 2026 17:22:14 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYo1x-0000000CLcu-40bB for linux-riscv@lists.infradead.org; Wed, 02 Dec 2026 17:22:13 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-cde4b4e936fso20514a12.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=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/LpkVOqBI9Qac3D9HOxLsdQftX6fzw3oyIc8z0=; b=pPf9BSSzVeGFnnkpsQUfX571gKrayyOCWScFcVj2pkR+R2i4WN5IvFyjgmlD3AWe37 SSQCRCcP52M7dUCIUwBKJyQomZfDWVyh0SxDzkTNyh8xmrO4Tun5jKbOAk6Wdp/EsEPk fQrJ5sVC6ZvIOD3XpuPgY/lhdgLMNSNrDKLWKSdLOK0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ZMHLwXHihouKbOBXaYvdjul8Tts 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 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_034640_3249E8ED X-CRM114-Status: GOOD ( 13.09 ) X-Spam-Score: -17.6 (-----------------) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 >> >> 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. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv