Enable guest suspend/resume support on ARM via vPSCI
v4 cover Enable guest suspend/resume support on ARM via vPSCI
From: Mykola Kvach <[email protected]>
This patch series introduces the initial support for guest suspend and resume on ARM platforms using the PSCI SYSTEM_SUSPEND interface. The main goal is to allow ARM guests to request suspension using PSCI and be resumed by the control domain (e.g., via "xl resume").
### Background
The PSCI SYSTEM_SUSPEND call is part of the PSCI v1.0+ specification and is used by guests to enter the deepest possible power state. On Xen/ARM, we emulate this interface in the virtual PSCI (vPSCI) layer for guests.
This series includes:
1. A new vPSCI implementation of the PSCI SYSTEM_SUSPEND function for guests
2. Documentation updates to SUPPORT.md to reflect PSCI and vPSCI support status
3. Enabling "xl resume" command compilation for ARM, which was previously disabled
### Usage
For Linux-based guests:
- Suspend can be triggered using: "echo mem > /sys/power/state" or "systemctl suspend"
- Resume can be performed from control domain using: "xl resume <domain>"
For more information, refer to the official Linux kernel documentation on power management.
Note that currently, SYSTEM_SUSPEND is supported only for guest domains (not for the hardware domain), and behaves as a logical standby. More details can be found in the appropriate commit message and in the code comments.
---
TODO: enable "xl suspend" for ARM
---
Previous versions of this patch series:
V1: https://lists.xenproject.org/archives/html/xen-devel/2018-11/msg01093.html
V2: https://marc.info/?l=xen-devel&m=166514782207736&w=2
V3: https://lists.xenproject.org/archives/html/xen-devel/2025-03/msg00168.html
This is the first part of previous patch series and originally consist only with necessary changes needed for guest domain suspend.
Mykola Kvach (4):
tools/xl: allow resume command compilation for arm xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests SUPPORT.md: Document ARM PSCI and vPSCI support
CHANGELOG: Mention Xen suspend/resume to RAM feature on arm64
CHANGELOG.md | 1 + SUPPORT.md | 15 +++++++ tools/include/libxl.h | 1 - tools/xl/xl.h | 2 +- tools/xl/xl_cmdtable.c | 2 +- tools/xl/xl_vmcontrol.c | 12 ++--- xen/arch/arm/include/asm/perfc_defn.h | 1 + xen/arch/arm/include/asm/psci.h | 2 + xen/arch/arm/vpsci.c | 64 +++++++++++++++++++++++++++ 9 files changed, 91 insertions(+), 9 deletions(-)
Signature · 1 line
2.48.1
PATCH v4 1/4 tools/xl: allow resume command compilation for arm
From: Mykola Kvach <[email protected]>
The "xl resume" command was previously excluded from ARM builds because system suspend/resume (e.g., SYSTEM_SUSPEND) via vPSCI was not implemented. On x86, the command is used for ACPI S3 suspend/resume.
This change enables compilation of xl resume on ARM regardless of the underlying implementation status, making the tool available for use in testing or for future support. The libxl infrastructure and handler functions are already present and usable.
Note: This does not imply full system suspend/resume support on ARM.
"xl suspend" command still not work for arm platforms.
--- tools/include/libxl.h | 1 - tools/xl/xl.h | 2 +- tools/xl/xl_cmdtable.c | 2 +- tools/xl/xl_vmcontrol.c | 12 ++++++------ 4 files changed, 8 insertions(+), 9 deletions(-)
tools/include/libxl.h +0 -1
@@ -1127,7 +1127,6 @@ typedef struct libxl__ctx libxl_ctx;* restoring or migrating a domain. In this case the related functions * should be expected to return failure. That is: * - libxl_domain_suspend -* - libxl_domain_resume * - libxl_domain_remus_start */ #if defined(__arm__) || defined(__aarch64__)
tools/xl/xl.h +1 -1
@@ -130,8 +130,8 @@ int main_migrate_receive(int argc, char **argv);int main_save (int argc,char **argv);int main_migrate (int argc,char **argv);int main_suspend (int argc,char **argv); -int main_resume (int argc,char **argv);#endif +int main_resume (int argc,char **argv);int main_dump_core (int argc,char **argv);int main_pause (int argc,char **argv);int main_unpause (int argc,char **argv);
tools/xl/xl_cmdtable.c +1 -1
@@ -198,12 +198,12 @@ const struct cmd_spec cmd_table[] = { "Suspend a domain to RAM", "<Domain>", }, +#endif { "resume", &main_resume, 0, 1, "Resume a domain from RAM", "<Domain>", }, -#endif { "dump-core", &main_dump_core, 0, 1, "Core dump a domain",
tools/xl/xl_vmcontrol.c +6 -6
@@ -38,11 +38,6 @@ static void suspend_domain(uint32_t domid)libxl_domain_suspend_only (ctx, domid,NULL ); } -static void resume_domain (uint32_t domid) -{ -libxl_domain_resume (ctx, domid,1 ,NULL ); -} -int main_suspend (int argc,char **argv) {int opt;
@@ -55,6 +50,12 @@ int main_suspend(int argc, char **argv) return EXIT_SUCCESS; } +#endif + +static void resume_domain (uint32_t domid) +{ +libxl_domain_resume (ctx, domid,1 ,NULL ); +}int main_resume (int argc,char **argv) {
@@ -68,7 +69,6 @@ int main_resume(int argc, char **argv)return EXIT_SUCCESS ; } -#endif static void pause_domain (uint32_t domid) {
Signature · 1 line
2.48.1
PATCH v4 2/4 xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
In reply to Mykola KvachFrom: Mykola Kvach <[email protected]>
This patch adds support for the PSCI SYSTEM_SUSPEND function in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0 SYSTEM_SUSPEND call (both 32-bit and 64-bit variants).
The implementation:
- Adds SYSTEM_SUSPEND function IDs to PSCI definitions
- Implements trapping and handling of SYSTEM_SUSPEND in vPSCI
- Allows only non-hardware domains to invoke SYSTEM_SUSPEND; for the hardware domain, PSCI_NOT_SUPPORTED is returned to avoid halting the system in hwdom_shutdown() called from domain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down with SHUTDOWN_suspend, and resumes execution at the instruction following the call
Usage:
For Linux-based guests, suspend can be initiated with:
echo mem > /sys/power/state
or via:
systemctl suspend
Resuming the guest is performed from control domain using:
xl resume <domain>
---
Changes in V3:
Dropped all domain flags and related code (which touched common functions like vcpu_unblock), keeping only the necessary changes for Xen suspend/resume, i.e. suspend/resume is now fully supported only for the hardware domain. Proper support for domU suspend/resume will be added in a future patch. This patch does not yet include VCPU context reset or domain context restoration in VCPU.
Changes in V4:
Dropped all changes related to watchdog, domain is marked as shutting down in domain_shutdown and watchdog timeout handler won't trigger because of it.
Previous versions included code to manage Xen watchdog timers during suspend, but this was removed. When a guest OS starts the Xen watchdog (either via the kernel driver or xenwatchdogd), it is responsible for managing that state across suspend/resume. On Linux, the Xen kernel driver properly stops the watchdog during suspend. However, when xenwatchdogd is used instead, suspend handling is incomplete, potentially leading to watchdog-triggered resets on resume. Xen leaves watchdog handling to the guest OS and its services.
Dropped all changes related to VCPU context, because instead domain_shutdown is used, so we don't need any extra changes for suspending domain.
--- xen/arch/arm/include/asm/perfc_defn.h | 1 + xen/arch/arm/include/asm/psci.h | 2 + xen/arch/arm/vpsci.c | 64 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+)
xen/arch/arm/include/asm/perfc_defn.h +1 -0
@@ -33,6 +33,7 @@ PERFCOUNTER(vpsci_system_reset, "vpsci: system_reset") PERFCOUNTER(vpsci_cpu_suspend, "vpsci: cpu_suspend") PERFCOUNTER(vpsci_cpu_affinity_info, "vpsci: cpu_affinity_info") PERFCOUNTER(vpsci_features, "vpsci: features") +PERFCOUNTER(vpsci_system_suspend, "vpsci: system_suspend")PERFCOUNTER (vcpu_kick,"vcpu: notify other vcpu" )
xen/arch/arm/include/asm/psci.h +2 -0
@@ -47,10 +47,12 @@ void call_psci_system_reset(void);#define PSCI_0_2_FN32_SYSTEM_OFF PSCI_0_2_FN32(8)#define PSCI_0_2_FN32_SYSTEM_RESET PSCI_0_2_FN32(9)#define PSCI_1_0_FN32_PSCI_FEATURES PSCI_0_2_FN32(10) +#define PSCI_1_0_FN32_SYSTEM_SUSPEND PSCI_0_2_FN32(14)#define PSCI_0_2_FN64_CPU_SUSPEND PSCI_0_2_FN64(1)#define PSCI_0_2_FN64_CPU_ON PSCI_0_2_FN64(3)#define PSCI_0_2_FN64_AFFINITY_INFO PSCI_0_2_FN64(4) +#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)/* PSCI v0.2 affinity level state returned by AFFINITY_INFO */ #define PSCI_0_2_AFFINITY_LEVEL_ON 0
xen/arch/arm/vpsci.c +64 -0
82 lines not on this page · raw message
Signature · 1 line
2.48.1
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Quoted 161 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callUsage:
For Linux-based guests, suspend can be initiated with:
echo mem >/sys/power/state
or via:
systemctl suspendResuming the guest is performed from control domain using:
xl resume <domain>Signed-off-by Mykola Kvach <[email protected]>---
Changes in V3:
Dropped all domain flags and related code (which touched common functions likevcpu_unblock), keeping only the necessary changes for Xen suspend/resume, i.e. suspend/resume is now fully supported only for the hardware domain. Proper support for domU suspend/resume will be added in a future patch. This patch does not yet include VCPU context reset or domain context restoration in VCPU.Changes in V4:
Dropped all changes related to watchdog, domain is marked as shutting down indomain_shutdownand watchdog timeout handler won't trigger because of it.Previous versions included code to manage Xen watchdog timers during suspend, but this was removed. When a guest OS starts the Xen watchdog (either via the kernel driver or xenwatchdogd), it is responsible for managing that state across suspend/resume. On Linux, the Xen kernel driver properly stops the watchdog during suspend. However, when xenwatchdogd is used instead, suspend handling is incomplete, potentially leading to watchdog-triggered resets on resume. Xen leaves watchdog handling to the guest OS and its services.
Dropped all changes related to VCPU context, because instead
domain_shutdownis used, so we don't need any extra changes for suspending domain.--- xen/arch/arm/include/asm/perfc_defn.h | 1 + xen/arch/arm/include/asm/psci.h | 2 + xen/arch/arm/vpsci.c | 64 +++++++++++++++++++++++++++ 3 files changed, 67 insertions(+)xen/arch/arm/include/asm/perfc_defn.h +1
-0@@ -33,6 +33,7 @@ PERFCOUNTER(vpsci_system_reset, "vpsci: system_reset") PERFCOUNTER(vpsci_cpu_suspend, "vpsci: cpu_suspend") PERFCOUNTER(vpsci_cpu_affinity_info, "vpsci: cpu_affinity_info") PERFCOUNTER(vpsci_features, "vpsci: features") +PERFCOUNTER(vpsci_system_suspend, "vpsci: system_suspend")PERFCOUNTER (vcpu_kick,"vcpu: notify other vcpu" )xen/arch/arm/include/asm/psci.h +2
-0@@ -47,10 +47,12 @@ void call_psci_system_reset(void);#define PSCI_0_2_FN32_SYSTEM_OFF PSCI_0_2_FN32(8)#define PSCI_0_2_FN32_SYSTEM_RESET PSCI_0_2_FN32(9)#define PSCI_1_0_FN32_PSCI_FEATURES PSCI_0_2_FN32(10) +#define PSCI_1_0_FN32_SYSTEM_SUSPEND PSCI_0_2_FN32(14)#define PSCI_0_2_FN64_CPU_SUSPEND PSCI_0_2_FN64(1)#define PSCI_0_2_FN64_CPU_ON PSCI_0_2_FN64(3)#define PSCI_0_2_FN64_AFFINITY_INFO PSCI_0_2_FN64(4) +#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)/* PSCI v0.2 affinity level state returned by AFFINITY_INFO */ #define PSCI_0_2_AFFINITY_LEVEL_ON 0xen/arch/arm/vpsci.c +53
-0@@ -197,6 +197,57 @@ static void do_psci_0_2_system_reset(void)domain_shutdown (d,SHUTDOWN_reboot); } +static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{ +struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) ) +return PSCI_DENIED ; + } + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b) +* +* 5.20.2 Caller responsibilities +* The call is equivalent to using the CPU_SUSPEND call for the deepest +* possible platform powerdown state. Consequently, the caller must observe +* all the rules described for CPU_SUSPEND. See section 5.4. +* +* 5.4.5 Caller responsibilities +* The caller must not assume that a powerdown request will return using +* the specified entry point address. The powerdown request might not +* complete due, for example, to pending interrupts. It is also possible +* that, because of coordination with other cores, the actual state entered +* is shallower than the one requested. Because of this it is possible for +* an implementation to downgrade the powerdown state request to a standby +* state. In the case of a downgrade to standby, the implementation returns +* at the instruction following the PSCI call, at the Exception level of +* the caller, instead of returning by the specified entry point address. +* The return code in this case is SUCCESS. In the case of an early return +* due to a pending wakeup event, the implementation can return at the next +* instruction, with a return code of SUCCESS, or resume at the specified +* entry point address. +* +* 5.4.9 Implementation responsibilities: State on return +* When returning from a standby state, the caller must observe no change in +* core state, other than any timer changes expected because of the time +* spent in the state, and changes in the CPU interface because of the +* wakeup reason. +*/ +return domain_shutdown (d, SHUTDOWN_suspend) ?PSCI_DENIED :PSCI_SUCCESS ; +} +static int32_t do_psci_1_0_features (uint32_t psci_func_id) {/* /!\ Ordered by function ID and not name */ @@ -214,6 +265,8 @@ static int32_t do_psci_1_0_features(uint32_t psci_func_id)case PSCI_0_2_FN32_SYSTEM_OFF :case PSCI_0_2_FN32_SYSTEM_RESET :case PSCI_1_0_FN32_PSCI_FEATURES : +case PSCI_1_0_FN32_SYSTEM_SUSPEND : +case PSCI_1_0_FN64_SYSTEM_SUSPEND :case ARM_SMCCC_VERSION_FID :return 0 ;default :
xen/arch/arm/vpsci.c bool do_vpsci_0_2_call(struct cpu_user_regs *regs, uint32_t fid) · line 401
Quoted 5 lines
xen/arch/arm/vpsci.c +2
-0@@ -344,6 +397,17 @@ bool do_vpsci_0_2_call(struct cpu_user_regs *regs, uint32_t fid)return true; } +case PSCI_1_0_FN32_SYSTEM_SUSPEND : +case PSCI_1_0_FN64_SYSTEM_SUSPEND :
note to self: update VPSCI_NR_FUNCS
Quoted 15 lines
xen/arch/arm/vpsci.c +9
-1+ { +register_t epoint =PSCI_ARG (regs,1 ); +register_t cid =PSCI_ARG (regs,2 ); + +perfc_incr (vpsci_system_suspend); +PSCI_SET_RESULT (regs,do_psci_1_0_system_suspend (epoint, cid)); +return true; + } +default :return false; } --2.48.1
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
In reply to Mykola KvachHi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).
Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the call
Looking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19 SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.
I understand that 5.20.2 ("Caller reponsabilities" for SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" for CPU_SUSPEND), but it is also mentioned that SYSTEM_SUSPEND behave as the deepest power down state.
So I don't think standby is an option. I would like an opinion from the other maintainers.
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 12 lines
xen/arch/arm/vpsci.c +12
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )
I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
Did you add this check just to follow the specification, or is there any other problem in Xen?
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 220
Quoted 7 lines
xen/arch/arm/vpsci.c +7
-0+return PSCI_DENIED ; + }> + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b)
This comment is a bit too verbose. There is no need to copy/paste the specification. You can just write a couple of sentence with link to the specification.
Cheers,
Signature · 1 line
Julien Grall
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Hi, @Julien Grall
Quoted 27 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.
Quoted 7 lines
I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.So I don't think standby is an option. I would like an opinion from the other maintainers.
Sure, let's discuss this with the others.
Quoted 17 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 13 lines
xen/arch/arm/vpsci.c +12
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
I'll think about how to protect against such cases. Thank you for pointing that out.
Quoted 2 lines
Did you add this check just to follow the specification, or is there any other problem in Xen?
Yes, it's just to comply with the specification — at least, I've never seen PSCI_DENIED triggered because of this check. It's a leftover from a previous patch series.
Quoted 9 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 220
Quoted 8 lines
xen/arch/arm/vpsci.c +7
-0+return PSCI_DENIED ; + }> + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b)
Quoted 3 lines
This comment is a bit too verbose. There is no need to copy/paste the specification. You can just write a couple of sentence with link to the specification.
Got it, I'll revise the comment accordingly.
Quoted 6 lines
Cheers,
--
Julien Grall
Best regards,
Mykola
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Quoted 59 lines · Mykola Kvach
Hi, @Julien Grall
Quoted 27 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.Quoted 7 lines
I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.So I don't think standby is an option. I would like an opinion from the other maintainers.
Sure, let's discuss this with the others.
Quoted 17 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 13 lines
xen/arch/arm/vpsci.c +12
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
Quoted 2 lines
I'll think about how to protect against such cases. Thank you for pointing that out.
Is that actually possible in this context? If suspend is successful, we pause all present vCPUs (including the current one), and control is not returned to the guest until either resume or an error occurs in this function. Since this runs as part of a trap, the current function can't be preempted.
Also, from the use of _VPF_down (via is_vcpu_online) on Arm, it looks like guest requests are what manipulate this bit, which further limits what can happen concurrently.
Maybe I missed something—if so, please share some details on how this could happen.
Note: It looks like the same behavior is present for VCPUOP_down as well.
Quoted 32 lines
Quoted 3 lines
Did you add this check just to follow the specification, or is there any other problem in Xen?
Yes, it's just to comply with the specification — at least, I've never seen
PSCI_DENIEDtriggered because of this check. It's a leftover from a previous patch series.Quoted 9 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 220
Quoted 8 lines
xen/arch/arm/vpsci.c +7
-0+return PSCI_DENIED ; + }> + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b) Quoted 3 lines
This comment is a bit too verbose. There is no need to copy/paste the specification. You can just write a couple of sentence with link to the specification.
Got it, I'll revise the comment accordingly.
Quoted 6 lines
Cheers,
--
Julien GrallBest regards,
Mykola
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Hi Mykola,
Quoted 60 lines · Mykola Kvach
Quoted 59 lines · Mykola Kvach
Hi, @Julien Grall
Quoted 27 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.Quoted 7 lines
I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.So I don't think standby is an option. I would like an opinion from the other maintainers.
Sure, let's discuss this with the others.
Quoted 17 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 13 lines
xen/arch/arm/vpsci.c +12
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
Quoted 7 lines
Quoted 2 lines
I'll think about how to protect against such cases. Thank you for pointing that out.
Is that actually possible in this context? If suspend is successful, we pause all present vCPUs (including the current one), and control is not returned to the guest until either resume or an error occurs in this function. Since this runs as part of a trap, the current function can't be preempted.
AFAIU, this code is called before suspend is completed. At that point you don't know yet the state of the vCPUs. They may be scheduled on a different pCPU. At which point, they can issue PSCI_CPU_ON.
Quoted 4 lines
Also, from the use of
_VPF_down(viais_vcpu_online) on Arm, it looks like guest requests are what manipulate this bit, which further limits what can happen concurrently.
I don't see how this help. See why above. So you will want to at least pause the domain before checking if all the vCPUs are offline.
Quoted 1 line
Note: It looks like the same behavior is present for
VCPUOP_downas well.
From a brief look, I agree the same behavior is present there.
Cheers,
Signature · 1 line
Julien Grall
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Quoted 67 lines · Julien Grall
Hi Mykola,
Quoted 63 lines · Mykola Kvach
Quoted 61 lines · Mykola Kvach
Hi, @Julien Grall
Quoted 27 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.Quoted 7 lines
I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.So I don't think standby is an option. I would like an opinion from the other maintainers.
Sure, let's discuss this with the others.
Quoted 17 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 13 lines
xen/arch/arm/vpsci.c +12
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v; +struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
I'll think about how to protect against such cases. Thank you for pointing that out.
Quoted 8 lines
Quoted 4 lines
Is that actually possible in this context? If suspend is successful, we pause all present vCPUs (including the current one), and control is not returned to the guest until either resume or an error occurs in this function. Since this runs as part of a trap, the current function can't be preempted.
AFAIU, this code is called before suspend is completed. At that point you don't know yet the state of the vCPUs. They may be scheduled on a different pCPU. At which point, they can issue
PSCI_CPU_ON.
Got it, thank you.
Quoted 18 lines
Quoted 5 lines
Also, from the use of
_VPF_down(viais_vcpu_online) on Arm, it looks like guest requests are what manipulate this bit, which further limits what can happen concurrently.I don't see how this help. See why above. So you will want to at least pause the domain before checking if all the vCPUs are offline.
Quoted 1 line
Note: It looks like the same behavior is present for
VCPUOP_downas well.From a brief look, I agree the same behavior is present there.
Cheers,
--
Julien Grall
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
In reply to Mykola KvachQuoted 35 lines · Mykola Kvach
Hi, @Julien Grall
Quoted 32 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.
Quoted 4 lines
Quoted 2 lines
So I don't think standby is an option. I would like an opinion from the other maintainers.
Sure, let's discuss this with the others.
My understanding of the spec is that SYSTEM_SUSPEND is equivalent to CPU_SUSPEND *for the deepest possible powerdown* state. CPU_SUSPEND can be implemented as standby or powerdown, but the SYSTEM_SUSPEND only mentions powerdown state (which is the true deepest state). Therefore I don't think standby could apply to SYSTEM_SUSPEND and we could simply ignore the entry point address passed by OS.
~Michal
Quoted 53 lines
Quoted 18 lines
Quoted 4 lines
xen/arch/arm/vpsci.c +2
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v;xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 10 lines
xen/arch/arm/vpsci.c +10
-0+struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
I'll think about how to protect against such cases. Thank you for pointing that out.
Quoted 2 lines
Did you add this check just to follow the specification, or is there any other problem in Xen?
Yes, it's just to comply with the specification — at least, I've never seen
PSCI_DENIEDtriggered because of this check. It's a leftover from a previous patch series.Quoted 9 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 220
Quoted 8 lines
xen/arch/arm/vpsci.c +7
-0+return PSCI_DENIED ; + }> + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b) Quoted 3 lines
This comment is a bit too verbose. There is no need to copy/paste the specification. You can just write a couple of sentence with link to the specification.
Got it, I'll revise the comment accordingly.
Quoted 6 lines
Cheers,
--
Julien GrallBest regards,
Mykola
Re: [PATCH v4][PART 1 2/4] xen/arm: Implement PSCI SYSTEM_SUSPEND call for guests
Hi Michal,
Quoted 42 lines · Michal
Quoted 38 lines · Mykola Kvach
Hi, @Julien Grall
Quoted 34 lines · Julien Grall
Hi Mykola,
Quoted 6 lines · Mykola Kvach
From: Mykola Kvach <[email protected]>
This patch adds support for the PSCI
SYSTEM_SUSPENDfunction in the vPSCI (virtual PSCI) interface, allowing guests to request suspend via the PSCI v1.0SYSTEM_SUSPENDcall (both 32-bit and 64-bit variants).Quoted 11 lines
The implementation:
- AddsSYSTEM_SUSPENDfunction IDs to PSCI definitions
- Implements trapping and handling ofSYSTEM_SUSPENDin vPSCI
- Allows only non-hardware domains to invokeSYSTEM_SUSPEND; for the hardware domain,PSCI_NOT_SUPPORTEDis returned to avoid halting the system inhwdom_shutdown()called fromdomain_shutdown
- Ensures all secondary VCPUs of the calling domain are offline before allowing suspend due to PSCI spec
- Treats suspend as a "standby" operation: the domain is shut down withSHUTDOWN_suspend, and resumes execution at the instruction following the callLooking at the specification, I am still not convinced you can implement PSCI SUSPEND as a NOP. For instance, in the section "5.1.19
SYSTEM_SUSPEND", the wording implies the call cannot return when it is successul.I understand that 5.20.2 ("Caller reponsabilities" for
SYSTEM_SUSPEND) suggests the caller should apply all the rules from 5.4 ("Caller responsabilties" forCPU_SUSPEND), but it is also mentioned thatSYSTEM_SUSPENDbehave as the deepest power down state.So I don't think standby is an option. I would like an opinion from the other maintainers.
Quoted 6 lines
Quoted 1 line
Sure, let's discuss this with the others.
My understanding of the spec is that
SYSTEM_SUSPENDis equivalent toCPU_SUSPEND*for the deepest possible powerdown* state.CPU_SUSPENDcan be implemented as standby or powerdown, but theSYSTEM_SUSPENDonly mentions powerdown state (which is the true deepest state). Therefore I don't think standby could apply toSYSTEM_SUSPENDand we could simply ignore the entry point address passed by OS.
Thank you for your feedback.
I agree with your and Julien's suggestions.
I will revert the behavior to the previous implementation, as proposed.
Best regards,
Mykola
Quoted 57 lines
~Michal
Quoted 53 lines
Quoted 18 lines
Quoted 4 lines
xen/arch/arm/vpsci.c +2
-0+static int32_t do_psci_1_0_system_suspend (register_t epoint,register_t cid) +{> + struct vcpu *v;xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 212
Quoted 10 lines
xen/arch/arm/vpsci.c +10
-0+struct domain *d = current->domain; + +/* Drop this check once SYSTEM_SUSPEND is supported in hardware domain */ +if (is_hardware_domain (d) ) +return PSCI_NOT_SUPPORTED ; + +/* Ensure that all CPUs other than the calling one are offline */ + for_each_vcpu ( d, v ) + { +if ( v != current &&is_vcpu_online (v) )I think this is racy because you can still turn on a vCPU afterwards from a vCPU you haven't checked.
I'll think about how to protect against such cases. Thank you for pointing that out.
Quoted 2 lines
Did you add this check just to follow the specification, or is there any other problem in Xen?
Yes, it's just to comply with the specification — at least, I've never seen
PSCI_DENIEDtriggered because of this check. It's a leftover from a previous patch series.Quoted 9 lines
xen/arch/arm/vpsci.c static void do_psci_0_2_system_reset(void) · line 220
Quoted 8 lines
xen/arch/arm/vpsci.c +7
-0+return PSCI_DENIED ; + }> + +/* +* System suspend requests are treated as performing standby +* as this simplifies Xen implementation. +* +* Arm Power State Coordination Interface (DEN0022F.b) Quoted 3 lines
This comment is a bit too verbose. There is no need to copy/paste the specification. You can just write a couple of sentence with link to the specification.
Got it, I'll revise the comment accordingly.
Quoted 6 lines
Cheers,
--
Julien GrallBest regards,
Mykola
PATCH v4 3/4 SUPPORT.md: Document ARM PSCI and vPSCI support
In reply to Mykola KvachFrom: Mykola Kvach <[email protected]>
Add a new entry under "Host hardware support" to document Xen's use of the PSCI interface to interact with EL3 firmware via SMC calls. Supported PSCI functions include CPU_ON, CPU_OFF, SYSTEM_RESET, and SYSTEM_OFF. SYSTEM_SUSPEND is not yet supported.
Add a separate entry under "Virtual Hardware, Hypervisor" for vPSCI, which describes the emulated PSCI interface exposed to guests. SYSTEM_SUSPEND is not yet supported for hardware domain.
--- SUPPORT.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
SUPPORT.md +15 -0
@@ -73,6 +73,12 @@ For the Cortex A77 r0p0 - r1p0, see Errata 1508412. Status, x86 PV: Supported Status, ARM: Experimental +### ARM/PSCI + + Status: Supported + +SYSTEM_SUSPEND is not yet supported. + ### Host EFI Boot Status, x86: Supported
@@ -946,6 +952,15 @@ by hwdom. Some platforms use SCMI for access to system-level resources. Status: Supported +### Arm: vPSCI (virtual PSCI interface for guests) + +Emulated PSCI interface exposed to guests to support CPU_ON, CPU_OFF, +SYSTEM_RESET, SYSTEM_OFF, etc. + + Status: Supported + +SYSTEM_SUSPEND is not yet supported for hardware domain. + ## Virtual Hardware, QEMU This section describes supported devices available in HVM mode using a
Signature · 1 line
2.48.1
PATCH v4 4/4 CHANGELOG: Mention Xen suspend/resume to RAM feature on arm64
In reply to Mykola KvachFrom: Mykola Kvach <[email protected]>
--- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+)
CHANGELOG.md +1 -0
@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - On Arm: - Ability to enable stack protector + - Support guest suspend/resume to/from RAM ### Removed - On x86:
Signature · 1 line
2.48.1
Re: [PATCH v4][PART 1 4/4] CHANGELOG: Mention Xen suspend/resume to RAM feature on arm64
Hello Mykola,
Quoted 12 lines · Mykola Kvach
From: Mykola Kvach<[email protected]>
Signed-off-by Mykola Kvach<[email protected]>--- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+)CHANGELOG.md +0
-0
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 32
Quoted 7 lines
CHANGELOG.md +1
-0@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - On Arm: - Ability to enable stack protector + - Support guest suspend/resume to/from RAM ### Removed - On x86:
According to your commit message, suspend/resume will only work for Arm64. I think it would be good to mention that in the|CHANGELOG.md| as well.
Also, this implementation adds suspend/resume support via vPSCI, which I believe is also worth noting in the|CHANGELOG.md|.
Thanks.
~ Oleksii
Re: [PATCH v4][PART 1 4/4] CHANGELOG: Mention Xen suspend/resume to RAM feature on arm64
Hi, @Oleksii Kurochko
Quoted 25 lines · Oleksii Kurochko
Hello Mykola,
On 5/27/25 11:18 AM, Mykola Kvach wrote:
From: Mykola Kvach <[email protected]>
Signed-off-by Mykola Kvach <[email protected]>--- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+)CHANGELOG.md +1
-0@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - On Arm: - Ability to enable stack protector + - Support guest suspend/resume to/from RAM ### Removed - On x86:
Quoted 2 lines
According to your commit message, suspend/resume will only work for Arm64. I think it would be good to mention that in the CHANGELOG.md as well.
Thank you for pointing that out — in this case, I forgot to drop "arm64" from the commit message.
For non-hardware domain guests, suspend/resume support is available for both ARM32 and ARM64.
When PSCI SYSTEM_SUSPEND is triggered from the hardware domain, the system ultimately uses
Host PSCI — that is, a full system suspend is performed.
Quoted 3 lines
Also, this implementation adds suspend/resume support via vPSCI, which I believe is also worth noting in the CHANGELOG.md.
You're right — in this context, "guest suspend/resume" refers to handling via the virtual PSCI (vPSCI) interface.
When regular PSCI is used, it's typically referred to as Host PSCI. That sentence could probably be rephrased for better clarity. Thank you.
Quoted 4 lines
Thanks.
~ Oleksii
Best regards,
Mykola
Re: [PATCH v4][PART 1 4/4] CHANGELOG: Mention Xen suspend/resume to RAM feature on arm64
Quoted 25 lines · Mykola Kvach
Hi, @Oleksii Kurochko
Quoted 21 lines · Oleksii Kurochko
Hello Mykola,
On 5/27/25 11:18 AM, Mykola Kvach wrote:
From: Mykola Kvach<[email protected]>
Signed-off-by Mykola Kvach<[email protected]>--- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+)CHANGELOG.md +1
-0@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - On Arm: - Ability to enable stack protector + - Support guest suspend/resume to/from RAM
Quoted 7 lines
Quoted 5 lines
CHANGELOG.md +0
-0### Removed - On x86:According to your commit message, suspend/resume will only work for Arm64. I think it would be good to mention that in the CHANGELOG.md as well.
Thank you for pointing that out — in this case, I forgot to drop "arm64" from the commit message.
Then it makes sense to me to drop it in next patch series version.
Quoted 5 lines
For non-hardware domain guests, suspend/resume support is available for both ARM32 and ARM64.
When PSCISYSTEM_SUSPENDis triggered from the hardware domain, the system ultimately uses
Host PSCI — that is, a full system suspend is performed.
Thanks for clarification.
Quoted 7 lines
Quoted 3 lines
Also, this implementation adds suspend/resume support via vPSCI, which I believe is also worth noting in the CHANGELOG.md.
You're right — in this context, "guest suspend/resume" refers to handling via the virtual PSCI (vPSCI) interface.
When regular PSCI is used, it's typically referred to as Host PSCI. That sentence could probably be rephrased for better clarity. Thank you.
It would be nice.
Thanks.
~ Oleksii