linux/arch/arm64/include
Andrew Scull f79e616f27 KVM: arm64: Use BUG and BUG_ON in nVHE hyp
hyp_panic() reports the address of the panic by using ELR_EL2, but this
isn't a useful address when hyp_panic() is called directly. Replace such
direct calls with BUG() and BUG_ON() which use BRK to trigger an
exception that then goes to hyp_panic() with the correct address. Also
remove the hyp_panic() declaration from the header file to avoid
accidental misuse.

Signed-off-by: Andrew Scull <ascull@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210318143311.839894-5-ascull@google.com
2021-04-01 09:54:37 +01:00
..
asm KVM: arm64: Use BUG and BUG_ON in nVHE hyp 2021-04-01 09:54:37 +01:00
uapi/asm KVM: arm64: Move 'struct kvm_arch_memory_slot' out of uapi/ 2020-11-27 18:59:05 +00:00