Re: [PATCH v22 07/10] kernel: hibernate: Add an arch hook for preventing hiberation
From: Sudeep Holla
Date: Fri Oct 02 2026 - 09:40:45 EST
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@xxxxxxxxxx>
> Cc: Len Brown <lenb@xxxxxxxxxx>
> Cc: Pavel Machek <pavel@xxxxxxxxxx>
> Cc: linux-pm@xxxxxxxxxxxxxxx
> Cc: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
FWIW, it makes sense for this RMM use case:
Reviewed-by: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
--
Regards,
Sudeep