diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2024-10-19 19:15:44 +0200 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-10-25 01:38:07 +0200 |
commit | 8be82d536a9f8d9974cf746d235c1f1c24dd31ed (patch) | |
tree | ef03fdd5a20d8859a4a68123f9b3489cff44f3bc /include/kvm | |
parent | KVM: arm64: Add PSCI v1.3 SYSTEM_OFF2 function for hibernation (diff) | |
download | linux-8be82d536a9f8d9974cf746d235c1f1c24dd31ed.tar.xz linux-8be82d536a9f8d9974cf746d235c1f1c24dd31ed.zip |
KVM: arm64: Add support for PSCI v1.2 and v1.3
As with PSCI v1.1 in commit 512865d83fd9 ("KVM: arm64: Bump guest PSCI
version to 1.1"), expose v1.3 to the guest by default. The SYSTEM_OFF2
call which is exposed by doing so is compatible for userspace because
it's just a new flag in the event that KVM raises, in precisely the same
way that SYSTEM_RESET2 was compatible when v1.1 was enabled by default.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Miguel Luis <miguel.luis@oracle.com>
Link: https://lore.kernel.org/r/20241019172459.2241939-4-dwmw2@infradead.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_psci.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/kvm/arm_psci.h b/include/kvm/arm_psci.h index e8fb624013d1..cbaec804eb83 100644 --- a/include/kvm/arm_psci.h +++ b/include/kvm/arm_psci.h @@ -14,8 +14,10 @@ #define KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2) #define KVM_ARM_PSCI_1_0 PSCI_VERSION(1, 0) #define KVM_ARM_PSCI_1_1 PSCI_VERSION(1, 1) +#define KVM_ARM_PSCI_1_2 PSCI_VERSION(1, 2) +#define KVM_ARM_PSCI_1_3 PSCI_VERSION(1, 3) -#define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_1 +#define KVM_ARM_PSCI_LATEST KVM_ARM_PSCI_1_3 static inline int kvm_psci_version(struct kvm_vcpu *vcpu) { |