Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A240D3BD63D for ; Thu, 23 Jul 2026 20:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784838573; cv=none; b=B+goP4g4DeLwgi88Ua6YrzRy29GXx4oLs7wHJx2zofnfQZPAHnWgSJm0umBp5O/7fEm2n5EeHtnRa0tsmviq0mUhyy4NY7NlS4iJG1y+pvapyrm5zdD5Qnas8/r7xgzgypZoHFJBOg0s9CMR0Xm/pNGnV3Y+HAgtoOPtAiPe1LM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784838573; c=relaxed/simple; bh=fvvuh53aMHyxVwUFTuuGbDU7Th9Sh3C3P5wNPmr45xg=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=atGv9adWWjwFGctCXTEgfwYhUS+B2vPuWHZzobWASHX2lWCp5tJIJ/iZBxvaobTyHCoO2wwiQ6OUCLd1H8lASNxKi7D6KtwiFIZorBt3xMY2ugkKONI2eAqrQ/yKUGjjr3be+gVgoUXrRbA8GDhxqsccrFuDtad7iDBnvTFGObk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--skhawaja.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=tuC0/MP6; arc=none smtp.client-ip=209.85.216.71 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=flex--skhawaja.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tuC0/MP6" Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-38e7b87ce77so2424413a91.0 for ; Thu, 23 Jul 2026 13:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784838566; x=1785443366; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=a2KNuiqZLV3X87jdwCQu+pUu3Q/Kmj/vy5AMT72i4f0=; b=tuC0/MP6YbC+ZqSsSUSzEttE88PA3q0Gh/I/o46b7fG6ZBw7j4zPv+vADTHHXqvLO1 2+6SvaJcdIijCXrY2D2/d+WZPP7yWpZU6amJT7hi40e6n88POMQt4BiC+Ss9FLUSo5W5 3jvdzuBshQuLhh+/lac/cMTpVDntsaIkJgxkbhKBrPIRDyIuoe87b/AN58WAk3Z1V96w BvTTk6Uy4ebBxisDS/v1gkFHEDRsAralZCAgGhx+frFykQTN3ic1/2VN5jaUmA5lMWN0 y9Av6uWAWgg62p9N9aqhH/1cdADpjYcwaUyRJQuTJDTYmIDV4rIyIlaj4MnRUOyfw7AF Cisw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784838566; x=1785443366; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=a2KNuiqZLV3X87jdwCQu+pUu3Q/Kmj/vy5AMT72i4f0=; b=PNVPRnPcb/A0GCWrvTaaWxv+bOUEN4aoQshjc+DjC/UBclv7fEpSX1Bl+CCTUhC7zV R/t6fiJtzC+hYK2t17bcKHKtnAJBZb95FvuN1boPyjJuhDurqEZ/8pOsGHsnjyBZOIu3 jB8NXYz7xcA8YLuIQ19IAFbnhSA/72gUggfKFJj1K9mD5+I90oWGfTNdhB++XgRqDRvF mZTmi5isPOreCeQ83NWuKlDQQdIs2mATJ7l+o4mTkMuYKBadTlzT6JdUXH40g8ZQblcm TT284QszXTjNi+ErzyYHiCLUolV6NMFGUwf4u7go4cLrO+59W/uAiwcZo49BaJuwXocR iGoA== X-Forwarded-Encrypted: i=1; AHgh+RrTZmQfPalSlgQYvItkxuoKT3GI+zFRbJO0NNcDDIq6b+UqcICST0Js4pnploX0cXZTz71GZiYNZxi7o/U=@vger.kernel.org X-Gm-Message-State: AOJu0YwHm8YyB8xvjY8Wgi6YEZ5XHmaey8fbc1yNJiKk9k3uX/J7TfOs SH951Xu+km8MPPoSudKwBiqjJUmok4W0VBoAKvSzSIDlJ5lVziz4Nqv7PJNarqIstLETvoTyDXx KgV/AIOtN2dbmyQ== X-Received: from pjbmh15.prod.google.com ([2002:a17:90b:4acf:b0:38e:ba48:b0cc]) (user=skhawaja job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:134d:b0:37f:9ce1:cda4 with SMTP id 98e67ed59e1d1-38ec6650501mr4883813a91.26.1784838565570; Thu, 23 Jul 2026 13:29:25 -0700 (PDT) Date: Thu, 23 Jul 2026 20:29:11 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.229.g6434b31f56-goog Message-ID: <20260723202912.1467112-1-skhawaja@google.com> Subject: [PATCH v2 0/1] liveupdate: Add internal APIs for file preservation From: Samiullah Khawaja To: Pasha Tatashin , Mike Rapoport , Pratyush Yadav , Alexander Graf Cc: Samiullah Khawaja , David Matlack , tarunsahu@google.com, open list , "open list:KEXEC HANDOVER (KHO)" , "open list:KEXEC HANDOVER (KHO)" Content-Type: text/plain; charset="UTF-8" Live update orchestrator file handlers depend on the preservation of other files. To make sure that the dependency is preserved, the file handlers needs to fetch the preservation token of the preserved dependency. Similarly during restore, a file handler wants to fetch the restored file of the dependency. There are two known usecases of this, - VFIO-Cdev preservation requires the preservation of iommufd. This is required by the IOMMU preservation series: https://lore.kernel.org/all/20260427175633.1978233-1-skhawaja@google.com/ - guest_memfd preservation requires the preservation of kvmfd. This is required by the guest_memfd preservation series: https://lore.kernel.org/all/20ae20f9d1a198b289444ebb4c824314cbba1bcf.1780676742.git.tarunsahu@google.com/ This patch was being sent as part of the IOMMU preservation series, but now it is being sent separately. Note that LUO File Handlers may resolve the dependencies during preserve() as freeze() is very late and past the point of no return. Also FH might have preservation requirements on dependencies due to immutability, security and performance reasons. v2: - rebased on liveupdate/next to resolve conflicts - Added a note about resolution of dependencies based on offline discussion with Pasha and David. Pasha Tatashin (1): liveupdate: luo_file: Add internal APIs for file preservation include/linux/liveupdate.h | 22 ++++++++++ kernel/liveupdate/luo_file.c | 69 ++++++++++++++++++++++++++++++++ kernel/liveupdate/luo_internal.h | 17 ++++++++ 3 files changed, 108 insertions(+) base-commit: cecfb90c5f2cc0622b363c2291b69d6cad272897 -- 2.55.0.229.g6434b31f56-goog