]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:50 +0000 (08:15 -0600)
commit69b98e81ec5f646dd767eee70ce8dfa6d6355758
tree7c8a0bbd45ce2b03376f930faba8922fe7d279e8
parent4b242aa2826676c9efcd1c279d8fe2ceb6ef7e30
arm/arm64: KVM: Turn kvm_psci_version into a static inline

BugLink: http://bugs.launchpad.net/bugs/1751064
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/kvm/hyp/switch.c
include/kvm/arm_psci.h
virt/kvm/arm/psci.c