aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/psci.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2022-02-21 15:35:23 +0000
committerMarc Zyngier <maz@kernel.org>2022-02-21 16:02:55 +0000
commitd43583b890e7cb0078d13d056753a56602b92406 (patch)
treeda9b91a4f9d9092f955298e3873a1ef73a64c3a0 /include/uapi/linux/psci.h
parentKVM: arm64: Bump guest PSCI version to 1.1 (diff)
downloadlinux-dev-d43583b890e7cb0078d13d056753a56602b92406.tar.xz
linux-dev-d43583b890e7cb0078d13d056753a56602b92406.zip
KVM: arm64: Expose PSCI SYSTEM_RESET2 call to the guest
PSCI v1.1 introduces the optional SYSTEM_RESET2 call, which allows the caller to provide a vendor-specific "reset type" and "cookie" to request a particular form of reset or shutdown. Expose this call to the guest and handle it in the same way as PSCI SYSTEM_RESET, along with some basic range checking on the type argument. Cc: Marc Zyngier <maz@kernel.org> Cc: James Morse <james.morse@arm.com> Cc: Alexandru Elisei <alexandru.elisei@arm.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220221153524.15397-3-will@kernel.org
Diffstat (limited to 'include/uapi/linux/psci.h')
-rw-r--r--include/uapi/linux/psci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/psci.h b/include/uapi/linux/psci.h
index 2fcad1dd0b0e..2bf93c0d6354 100644
--- a/include/uapi/linux/psci.h
+++ b/include/uapi/linux/psci.h
@@ -82,6 +82,10 @@
#define PSCI_0_2_TOS_UP_NO_MIGRATE 1
#define PSCI_0_2_TOS_MP 2
+/* PSCI v1.1 reset type encoding for SYSTEM_RESET2 */
+#define PSCI_1_1_RESET_TYPE_SYSTEM_WARM_RESET 0
+#define PSCI_1_1_RESET_TYPE_VENDOR_START 0x80000000U
+
/* PSCI version decoding (independent of PSCI version) */
#define PSCI_VERSION_MAJOR_SHIFT 16
#define PSCI_VERSION_MINOR_MASK \