]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ed36f1bfe06f74d384b07b18f7feb4d3784504d
treed23f2e163b98dcb6468545cc7a6ab84c1002aafe
parentf841d01f1c0772af3a12882f4d58c09756ff526d
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