Message ID | 20241019172459.2241939-1-dwmw2@infradead.org (mailing list archive) |
---|---|
Headers | show |
Series | Add PSCI v1.3 SYSTEM_OFF2 support for hibernation | expand |
On Sat, 19 Oct 2024 18:15:41 +0100, David Woodhouse wrote: > The PSCI v1.3 spec (https://developer.arm.com/documentation/den0022) > adds support for a SYSTEM_OFF2 function enabling a HIBERNATE_OFF state > which is analogous to ACPI S4. This will allow hosting environments to > determine that a guest is hibernated rather than just powered off, and > ensure that they preserve the virtual environment appropriately to > allow the guest to resume safely (or bump the hardware_signature in the > FACS to trigger a clean reboot instead). > > [...] I grabbed the KVM portions of this series, as they look ready to go. Happy to take the last one through kvmarm tree w/ acks, and can toss it on top. Applied to kvmarm/next, thanks! [1/6] firmware/psci: Add definitions for PSCI v1.3 specification https://git.kernel.org/kvmarm/kvmarm/c/2f2d46959808 [2/6] KVM: arm64: Add PSCI v1.3 SYSTEM_OFF2 function for hibernation https://git.kernel.org/kvmarm/kvmarm/c/97413cea1c48 [3/6] KVM: arm64: Add support for PSCI v1.2 and v1.3 https://git.kernel.org/kvmarm/kvmarm/c/8be82d536a9f [4/6] KVM: selftests: Add test for PSCI SYSTEM_OFF2 https://git.kernel.org/kvmarm/kvmarm/c/72be5aa6be4a [5/6] KVM: arm64: nvhe: Pass through PSCI v1.3 SYSTEM_OFF2 call https://git.kernel.org/kvmarm/kvmarm/c/94f985c39a1e -- Best, Oliver
On Fri, Oct 25, 2024 at 10:12:41PM +0000, Oliver Upton wrote: > On Sat, 19 Oct 2024 18:15:41 +0100, David Woodhouse wrote: > > The PSCI v1.3 spec (https://developer.arm.com/documentation/den0022) > > adds support for a SYSTEM_OFF2 function enabling a HIBERNATE_OFF state > > which is analogous to ACPI S4. This will allow hosting environments to > > determine that a guest is hibernated rather than just powered off, and > > ensure that they preserve the virtual environment appropriately to > > allow the guest to resume safely (or bump the hardware_signature in the > > FACS to trigger a clean reboot instead). > > > > [...] > > I grabbed the KVM portions of this series, as they look ready to go. Happy > to take the last one through kvmarm tree w/ acks, and can toss it on top. Happy for you to take the last patch as well through the KVM tree. Feel free to adjust the code comment as you see fit.
On Thu, 2024-10-31 at 12:15 +0000, Catalin Marinas wrote: > On Fri, Oct 25, 2024 at 10:12:41PM +0000, Oliver Upton wrote: > > On Sat, 19 Oct 2024 18:15:41 +0100, David Woodhouse wrote: > > > The PSCI v1.3 spec (https://developer.arm.com/documentation/den0022) > > > adds support for a SYSTEM_OFF2 function enabling a HIBERNATE_OFF state > > > which is analogous to ACPI S4. This will allow hosting environments to > > > determine that a guest is hibernated rather than just powered off, and > > > ensure that they preserve the virtual environment appropriately to > > > allow the guest to resume safely (or bump the hardware_signature in the > > > FACS to trigger a clean reboot instead). > > > > > > [...] > > > > I grabbed the KVM portions of this series, as they look ready to go. Happy > > to take the last one through kvmarm tree w/ acks, and can toss it on top. > > Happy for you to take the last patch as well through the KVM tree. Feel > free to adjust the code comment as you see fit. Thanks. that's probably the best option, as it depends on the definitions in psci.h.
On Sat, 19 Oct 2024 18:15:41 +0100, David Woodhouse wrote: > The PSCI v1.3 spec (https://developer.arm.com/documentation/den0022) > adds support for a SYSTEM_OFF2 function enabling a HIBERNATE_OFF state > which is analogous to ACPI S4. This will allow hosting environments to > determine that a guest is hibernated rather than just powered off, and > ensure that they preserve the virtual environment appropriately to > allow the guest to resume safely (or bump the hardware_signature in the > FACS to trigger a clean reboot instead). > > [...] Thanks Catalin for the ack, as promised: Applied to kvmarm/next, thanks! [6/6] arm64: Use SYSTEM_OFF2 PSCI call to power off for hibernate https://git.kernel.org/kvmarm/kvmarm/c/3e251afaec9a -- Best, Oliver
On Thu, 2024-10-31 at 17:56 +0000, Oliver Upton wrote: > On Sat, 19 Oct 2024 18:15:41 +0100, David Woodhouse wrote: > > The PSCI v1.3 spec (https://developer.arm.com/documentation/den0022) > > adds support for a SYSTEM_OFF2 function enabling a HIBERNATE_OFF state > > which is analogous to ACPI S4. This will allow hosting environments to > > determine that a guest is hibernated rather than just powered off, and > > ensure that they preserve the virtual environment appropriately to > > allow the guest to resume safely (or bump the hardware_signature in the > > FACS to trigger a clean reboot instead). > > > > [...] > > Thanks Catalin for the ack, as promised: > > Applied to kvmarm/next, thanks! > > [6/6] arm64: Use SYSTEM_OFF2 PSCI call to power off for hibernate > https://git.kernel.org/kvmarm/kvmarm/c/3e251afaec9a Thank you.