Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) (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 910B9275B03 for ; Thu, 20 Aug 2026 19:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787253546; cv=none; b=mq3fDpy3M+DF7Z6Smdb2cRXFgiM/NnCYyEK7pkgYvdcRIgoKVtwHl5E/c1mKtxX6uMGIfpy/BuZ0PBVMeBOJVAzt0VY0boJjqi9CCnvT2W5g2gkeN3IDPvSaRyRRj+QLDnpPnCijrJgC0rF/12cDc0KPH893nPDeqx67hi+loJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787253546; c=relaxed/simple; bh=9W9ZeA9sba1T9SK87Ld183ERyicXjRYVK/1jjjCt3L4=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=EYgBfs3RLRi/NcQCnViEAUwxByLM1SsFKVCUFu0NZ7dv6fEZv23q4tB8jcNhP1ADwIvC/nl2pEj7qEDAdpvqyNiKph6mfmDlrC82dI66mX8Au2SDt19Ebv4mfgbIGl81GUxfz0zlgfTbCBi5zSTaYcydkwlxksH0Xx+SNnN1TzE= 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=icdypHwM; arc=none smtp.client-ip=209.85.214.198 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="icdypHwM" Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2d63c48886bso4484075ad.0 for ; Thu, 20 Aug 2026 12:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787253545; x=1787858345; 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=JltQ6Mhzamu5iKOEvRgy+JKSzJMl+WcJVP1h+ocPhQo=; b=icdypHwMtGmK9IwGrsSv8g3RfcH88gzhya4EpL/BRKnG72wSbYRiWIN9NDtzNsjti0 Zhy+bQazZ5tgEBUyetuECmTHmmBGiW9Pyug3jMoo1VSUveDzYniC4EQkcVWEkraofrTj GBXpJ/dxCXIYnnY5wzej0Dz0E1O93906OOJACumkh4hvFhWYDVWxVvrYB3ZcwfAy/yeh yBuYieVwct4F6DMdnPJsl5G68scjhc/m8J+VbVKXXHkBZbCTXZKRapj8Zm2movPeZOES etjT73nOVxUvH3tTW/KcJrxw6XQAtL9a3lX7uswALq0TvzMkrCCCajCcpfyT89ZVwBrd hFPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787253545; x=1787858345; 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=JltQ6Mhzamu5iKOEvRgy+JKSzJMl+WcJVP1h+ocPhQo=; b=HoLyYiYKmG86xRux+cZJXHufw1oqZ2nUUaejOJBWX5MQZ5q/h/ediUP9hNsn/5WoT5 +ssb5psEUoAV8/dC+twKbq/J6fZzDJPra6HMFVoBxoPEoAJrIih+0q4vreJuZ0eXU2f/ sbVb6t9KfwvJai3b0pAHY6EzmMqpkP0nyVPprJPhKHqeC9cF8I8pR7Ve3t5XwneU465U eWK+pGgkGmIhtNjJPzGTRp1YnZLZZsS+wsDc2o4FDGgLGJ1V3qQeXJRNntoJaCD+Gry+ BZ9wUMmzQ64lhKruaBH9cMP3mKZ+g5kMF3sVVJT1TRxmNeJ+NhEXRuDtpxWrAALyZWBe EGSw== X-Forwarded-Encrypted: i=1; AHgh+RoFLgEG97EScIw5TFIDwF5IiPWAVOheolNZ75JwoYViUdB0ZkysVg48TChGQeBzAjAHtVMF7hNdggWowdE=@vger.kernel.org X-Gm-Message-State: AFuF++mcPFmk7x7a7Xq5Lj6n/OvvBzpo8CXa9qn2SHtVnt3OBOzF/LPt qHa3S1ea6SPl7mzyEehmNGtQvWG7YhPyssvC63Pux/FJ7/DROnTq5RUYITQEOHQkhBHHB6/n/Bz figu3Ww84mIi5Sw== X-Received: from plox6.prod.google.com ([2002:a17:902:8ec6:b0:2ce:d12d:d6f5]) (user=skhawaja job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:32cc:b0:2cc:f5b8:4c2e with SMTP id d9443c01a7336-2d64b0cd474mr16550235ad.9.1787253544418; Thu, 20 Aug 2026 12:19:04 -0700 (PDT) Date: Thu, 20 Aug 2026 19:18:53 +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.766.g2966f0265a-goog Message-ID: <20260820191854.1642931-1-skhawaja@google.com> Subject: [PATCH v3 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" Note: Sending v3 of this as it was requested to document some of the discussion we had on the email. 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. v3: - Add File Handler dependency documentation. 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 | 84 ++++++++++++++++++++++++++++++++ kernel/liveupdate/luo_internal.h | 17 +++++++ 3 files changed, 123 insertions(+) base-commit: 3a0b8fa2eb36afc88b62a95f33f0c77c71fa5ded -- 2.55.0.766.g2966f0265a-goog