arm/arm64: KVM: Turn kvm_psci_version into a static inline
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:13 +0000 (17:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:22:55 +0000 (20:22 +0100)
commit2cfe8929f6247dbee8def7e94f334909fe5ac084
tree6d5bf7ac032c50f66248b39768ad3058ec25725e
parent98be7165d9f71f5df9802548b7d8ab2cf6ccb211
arm/arm64: KVM: Turn kvm_psci_version into a static inline

Commit a4097b351118 upstream.

We're about to need kvm_psci_version in HYP too. So let's turn it
into a static inline, and pass the kvm structure as a second
parameter (so that HYP can do a kern_hyp_va on it).

Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@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>
arch/arm64/kvm/hyp/switch.c
include/kvm/arm_psci.h
virt/kvm/arm/psci.c