arm64: KVM: VHE: Patch out use of HVC
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 29 Jan 2015 13:52:12 +0000 (13:52 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 9 Nov 2016 14:15:49 +0000 (22:15 +0800)
commit493f9d879875347d62bc1436402ce92bb5b5f699
tree24ba80ebdfc7828bb71274b0995896f94d85f455
parent45f5d7f2ea9f736fde9d94fe3e3268add0ba2b15
arm64: KVM: VHE: Patch out use of HVC

With VHE, the host never issues an HVC instruction to get into the
KVM code, as we can simply branch there.

Use runtime code patching to simplify things a bit.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit b81125c791a2958cc60ae968fc1cdea82b7cd3b0)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kvm/hyp.S
arch/arm64/kvm/hyp/hyp-entry.S