diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2018-02-06 17:56:09 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 20:22:54 +0100 |
commit | 4efa1a863a1218d4b884a67178735950aab85c2e (patch) | |
tree | cd63f682aaa92fdf025aefa9f169a247745e2119 /include/kvm | |
parent | 591862b560003518dfc369d44d1e177d96f7104c (diff) | |
download | linux-stable-4efa1a863a1218d4b884a67178735950aab85c2e.tar.gz linux-stable-4efa1a863a1218d4b884a67178735950aab85c2e.tar.bz2 linux-stable-4efa1a863a1218d4b884a67178735950aab85c2e.zip |
arm/arm64: KVM: Add PSCI_VERSION helper
Commit d0a144f12a7c upstream.
As we're about to trigger a PSCI version explosion, it doesn't
hurt to introduce a PSCI_VERSION helper that is going to be
used everywhere.
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_psci.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/kvm/arm_psci.h b/include/kvm/arm_psci.h index 2042bb909474..5659343580a3 100644 --- a/include/kvm/arm_psci.h +++ b/include/kvm/arm_psci.h @@ -18,8 +18,10 @@ #ifndef __KVM_ARM_PSCI_H__ #define __KVM_ARM_PSCI_H__ -#define KVM_ARM_PSCI_0_1 1 -#define KVM_ARM_PSCI_0_2 2 +#include <uapi/linux/psci.h> + +#define KVM_ARM_PSCI_0_1 PSCI_VERSION(0, 1) +#define KVM_ARM_PSCI_0_2 PSCI_VERSION(0, 2) int kvm_psci_version(struct kvm_vcpu *vcpu); int kvm_psci_call(struct kvm_vcpu *vcpu); |