arm64: KVM: Move lr save/restore to do_el2_call
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:35 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:18 +0000 (07:49 -0700)
commit6c9ae25dfcaea32512fc27308c64e78159c46aeb
treed23f2e163b98dcb6468545cc7a6ab84c1002aafe
parent50d912cc3e5055c14e13a8e7de5c078b01a2e2b7
arm64: KVM: Move lr save/restore to do_el2_call

At the moment, we only save/restore lr if on VHE, as we rely only
the EL1 code to have preserved it in the non-VHE case.

As we're about to get rid of the latter, let's move the save/restore
code to the do_el2_call macro, unifying both code paths.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm64/kvm/hyp.S
arch/arm64/kvm/hyp/hyp-entry.S