summaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-02-06 17:56:09 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2018-02-06 22:53:56 +0000
commitd0a144f12a7ca8368933eae6583c096c363ec506 (patch)
tree9cfb945f9b554eba767ec62bd61d901beb596f0f /include/kvm
parent1a2fb94e6a771ff94f4afa22497a4695187b820c (diff)
downloadlinux-d0a144f12a7ca8368933eae6583c096c363ec506.tar.gz
linux-d0a144f12a7ca8368933eae6583c096c363ec506.tar.bz2
linux-d0a144f12a7ca8368933eae6583c096c363ec506.zip
arm/arm64: KVM: Add PSCI_VERSION helper
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>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_psci.h6
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);