]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Dump instruction on hyp panic
authorMostafa Saleh <smostafa@google.com>
Tue, 9 Sep 2025 13:36:30 +0000 (13:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 15 Sep 2025 12:04:22 +0000 (13:04 +0100)
commit92b7624fe052ffb0b7b70d96cd514e02e91664a8
tree3f216b6d937d9d36a888bd09ad19c3751d591ed4
parent1b237f190eb3d36f52dffe07a40b5eb210280e00
KVM: arm64: Dump instruction on hyp panic

Similar to the kernel panic, where the instruction code is printed,
we can do the same for hypervisor panics.

This patch does that only in case of “CONFIG_NVHE_EL2_DEBUG” or nvhe.

The next patch adds support for pKVM.

Also, remove the hardcoded argument dump_kernel_instr().

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Tested-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Kunwu Chan <chentao@kylinos.cn>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/traps.h
arch/arm64/kernel/traps.c
arch/arm64/kvm/handle_exit.c