diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-01-05 13:43:18 -0500 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-29 13:34:14 -0500 |
commit | bafc6c2a22553193d1d1ce83783b7faa0924158e (patch) | |
tree | 82e084f84983034a6fb53e4ad76081ef25b8a659 /arch/arm/kvm/hyp/hyp.h | |
parent | 97e964371377ebf3958701b082597c2162e3df18 (diff) |
ARM: KVM: Add HYP mode entry code
This part is almost entierely borrowed from the existing code, just
slightly simplifying the HYP function call (as we now save SPSR_hyp
in the world switch).
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm/hyp/hyp.h')
-rw-r--r-- | arch/arm/kvm/hyp/hyp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kvm/hyp/hyp.h b/arch/arm/kvm/hyp/hyp.h index 8b1156b691ff..8b9c2eb5a9dc 100644 --- a/arch/arm/kvm/hyp/hyp.h +++ b/arch/arm/kvm/hyp/hyp.h | |||
@@ -123,4 +123,6 @@ void __hyp_text __banked_restore_state(struct kvm_cpu_context *ctxt); | |||
123 | 123 | ||
124 | int asmlinkage __guest_enter(struct kvm_vcpu *vcpu, | 124 | int asmlinkage __guest_enter(struct kvm_vcpu *vcpu, |
125 | struct kvm_cpu_context *host); | 125 | struct kvm_cpu_context *host); |
126 | int asmlinkage __hyp_do_panic(const char *, int, u32); | ||
127 | |||
126 | #endif /* __ARM_KVM_HYP_H__ */ | 128 | #endif /* __ARM_KVM_HYP_H__ */ |