From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (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 A64D1265623 for ; Sat, 13 Jun 2026 01:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781313923; cv=none; b=hpz8U+buTrkNT4BiS5bGOnOl1JKsoZ65b7M2LeQYffi6ygclyRKsMopu0xLCIvvpMpJqxoBd8IoLLqXwCwa2rWC5h3ebJj/U295K83AumBnahEJudN+wpXJZ/bjHGODUTw8NQ4Mqtf8vr5qfxex8yrKXW29bnkAQTLIdysu0j9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781313923; c=relaxed/simple; bh=tRZiVRs3JEwV/mL2UuwGuOl7yuUEchBkpOFbY/dmldo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=ccap86WnIL1d2pyJXgQrlk9zWYak+8mvmw+oJOu7qqB8kBLzN6ooxVuPH5mCDMGg/Ni/p5VedU2oLBjswzwzyptl04cBASfSW7CMlZQ4W30oQ90+wD0fJ3ansowQwVTT23GOR/9vy7ZIsElWl5OOEr8b8lsOLRGWxMz6acxs3d0= 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=J701ward; arc=none smtp.client-ip=209.85.215.201 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="J701ward" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-c857fa2706aso639240a12.2 for ; Fri, 12 Jun 2026 18:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781313922; x=1781918722; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=cu/yolJajqpUi6JPaZqDIqNimARDAvp56AZs+065qLg=; b=J701ward+D1kiyc38Ak8gW4JvXfb2QJgmtSBlmNNFQlcxtjFzyWjgEFI4kRT3zlA/0 eiKlokL5uzSvLHe3zmWJpMDDbFypiZ9YMlg9loBQQL0/nnrn3+n9Yw+D/0mblj8QxB7v OofGhOacNI8eFqTZLgwsNycXq34Q5Z3fZdaFgG2+XDBgBGNVEtnCSUqTzIHOJ4Z2yBGZ xg+/6nsqYIZYUqvJw0FCmx/eVOpsVgfP1unl6DKiOlyifmvDofaoz5lWeYGXzl9msmQG xmroG0lGxYavl2rx11fBhUMwI/XmE/KXZ58K/YhRK+03E0RDcnWU+CaA4ZSqsRBhgdWJ dtjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781313922; x=1781918722; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cu/yolJajqpUi6JPaZqDIqNimARDAvp56AZs+065qLg=; b=RzbxbQoLBQipVpvvdpf24AAsaZ6GAJLGOgKIXg5tZMwKlg9eWjSo9QSBdX360YI0lQ R4/HQjGB3rCoznuYotmjoLcZUS1/mOtGrwsMp6UrI+dqTvQSuBZ5z3SYLS+w2L7BZOLs SH+sZqnE3APXkt/nPd2Qpj9+RUl8V1wl9TfckG0GAiuxLZkDUsCnJ6vwjtpZhDNoKgup m6w8QihMJvmYgh2Lsa5PHi3n9cBAnmRI/P+aFoFs1D5l+tROLbUD8Uemxu8ouc30RPMz HTyrv+QaYmPbq8RTOZqZBWPdWiBVbiRGNrygUqYQyKE1oT4Wy4g/Fv0p8810C1x74kwG GoJQ== X-Forwarded-Encrypted: i=1; AFNElJ+fOaaVRfLOSqeKBqJhA/uUKds4Ed9Kzx1Njv8d9fqkA0vE0ZtSHl5eufHOXZDauQwFltFa/msGXVJV0ao=@vger.kernel.org X-Gm-Message-State: AOJu0YzglG87LvGoLQNpMy2hbDvfWKz3scGHSXhX7ktPUjL1Gw9eAqZP pKBNF1hn2hXn7hJ446tj8aWEAUByKp0BIZrP2qqhmNOTw6WIV1dkbOafinxpV/AICp7GbCt/CUu 9MdeCJzctkq75WA== X-Received: from pgce10.prod.google.com ([2002:a05:6a02:1ca:b0:c85:81b8:dc5f]) (user=skhawaja job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:7106:b0:3b4:7c33:296b with SMTP id adf61e73a8af0-3b7963cf4b5mr1901418637.32.1781313921702; Fri, 12 Jun 2026 18:25:21 -0700 (PDT) Date: Sat, 13 Jun 2026 01:25:19 +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.54.0.1136.gdb2ca164c4-goog Message-ID: <20260613012521.835490-1-skhawaja@google.com> Subject: [PATCH 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. Pasha Tatashin (1): liveupdate: luo_file: Add internal APIs for file preservation include/linux/liveupdate.h | 21 ++++++++++ kernel/liveupdate/luo_file.c | 69 ++++++++++++++++++++++++++++++++ kernel/liveupdate/luo_internal.h | 17 ++++++++ 3 files changed, 107 insertions(+) base-commit: 34e8f02817e31826e76bb2ded48bf28fe921f20b -- 2.54.0.1136.gdb2ca164c4-goog