]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Always reference __hyp_panic_string via its kernel VA
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 30 Jun 2016 17:40:35 +0000 (18:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sun, 3 Jul 2016 21:41:27 +0000 (23:41 +0200)
commite8c30d7e0e4ac496e95c578fa2b56cfb79254990
tree5afc0cf776ae43fc1c614b20f6f1fea3e33b55ce
parentd1c1619abe4b639e6423d2f4f3c52f5b0094154c
arm64: KVM: Always reference __hyp_panic_string via its kernel VA

__hyp_panic_string is passed via the HYP panic code to the panic
function, and is being "upgraded" to a kernel address, as it is
referenced by the HYP code (in a PC-relative way).

This is a bit silly, and we'd be better off obtaining the kernel
address and not mess with it at all. This patch implements this
with a tiny bit of asm glue, by forcing the string pointer to be
read from the literal pool.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/kvm/hyp/switch.c