[PATCH v22 07/10] kernel: hibernate: Add an arch hook for preventing hiberation
Sudeep Holla
sudeep.holla at kernel.org
Fri Oct 2 06:32:25 PDT 2026
On Fri, Oct 02, 2026 at 07:15:03AM +0100, Suzuki K Poulose wrote:
> Add a hook to allow arch code disable hibernation. On arm64, with an RMM active,
> there could be pages that are delegated to the "Realm" security state. Any
> access to them are fatal (e.g., hibernate save image or restoring an image to
> a delegated page). pKVM host also has its restrictions on enabling hibernation.
>
> Add a weak arch hook to let the architectures have a say.
>
> Cc: "Rafael J. Wysocki" <rafael at kernel.org>
> Cc: Len Brown <lenb at kernel.org>
> Cc: Pavel Machek <pavel at kernel.org>
> Cc: linux-pm at vger.kernel.org
> Cc: Sudeep Holla <sudeep.holla at kernel.org>
FWIW, it makes sense for this RMM use case:
Reviewed-by: Sudeep Holla <sudeep.holla at kernel.org>
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list