diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-10-10 10:21:18 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-03-19 10:53:11 +0000 |
commit | bc192ceec37108bf6c04a5c5795fcea5f940b0de (patch) | |
tree | aa5c6b84d979e889dee128e614070564971902f2 /arch/arm64/include | |
parent | 3df59d8dd3c2526b33d51af9e6f66e61262de71b (diff) | |
download | linux-bc192ceec37108bf6c04a5c5795fcea5f940b0de.tar.gz linux-bc192ceec37108bf6c04a5c5795fcea5f940b0de.tar.bz2 linux-bc192ceec37108bf6c04a5c5795fcea5f940b0de.zip |
KVM: arm/arm64: Add kvm_vcpu_load_sysregs and kvm_vcpu_put_sysregs
As we are about to move a bunch of save/restore logic for VHE kernels to
the load and put functions, we need some infrastructure to do this.
Reviewed-by: Andrew Jones <drjones@redhat.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index b027a7f025d4..c30fc96992df 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -435,4 +435,7 @@ static inline bool kvm_arm_harden_branch_predictor(void) return cpus_have_const_cap(ARM64_HARDEN_BRANCH_PREDICTOR); } +void kvm_vcpu_load_sysregs(struct kvm_vcpu *vcpu); +void kvm_vcpu_put_sysregs(struct kvm_vcpu *vcpu); + #endif /* __ARM64_KVM_HOST_H__ */ |