]> 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)
commit8d6dedda708e4d4ce1dac476619f9d6bb8969c6c
tree5afc0cf776ae43fc1c614b20f6f1fea3e33b55ce
parent9207f8790421850d6def2175c8712a68a438a445
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