]>
xen: Introduce system suspend config option
authorMykyta Poturai <mykyta_poturai@epam.com>
Wed, 11 Jun 2025 09:09:00 +0000 (11:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Jun 2025 09:09:00 +0000 (11:09 +0200)
commit69c83031737b5fa490d292a9c11864e3fd85c872
tree969c2ac3cbc4787b0fc97a02069aed4e68a4c32b
parentefe0870d4a00321feda2f2d8d51045b460d41549
xen: Introduce system suspend config option

This option enables the system suspend support. This is the mechanism that
allows the system to be suspended to RAM and later resumed.

The patch introduces three options:
- HAS_SYSTEM_SUSPEND: indicates suspend support is available on the platform.
- SYSTEM_SUSPEND_ALWAYS_ON: used for architectures where suspend must always
  be enabled.
- SYSTEM_SUSPEND: user-facing option to enable/disable suspend if supported.
  Defaults to enabled if SYSTEM_SUSPEND_ALWAYS_ON is set and depends on
  HAS_SYSTEM_SUSPEND.

On x86, both HAS_SYSTEM_SUSPEND and SYSTEM_SUSPEND_ALWAYS_ON are selected by
default, making suspend support always enabled. The options are designed to
be easily extensible to other architectures (e.g., PPC, RISC-V) as future
support is added.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Kconfig
xen/common/Kconfig