[PATCH v2 1/2] KVM: arm64: Dump instruction on hyp panic
Will Deacon
will at kernel.org
Mon Sep 15 03:54:44 PDT 2025
On Tue, Sep 09, 2025 at 01:36:30PM +0000, Mostafa Saleh wrote:
> 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 at google.com>
> Tested-by: Kunwu Chan <chentao at kylinos.cn>
> Reviewed-by: Kunwu Chan <chentao at kylinos.cn>
> ---
> arch/arm64/include/asm/traps.h | 1 +
> arch/arm64/kernel/traps.c | 15 +++++++++------
> arch/arm64/kvm/handle_exit.c | 5 +++++
> 3 files changed, 15 insertions(+), 6 deletions(-)
Thanks for the respin:
Acked-by: Will Deacon <will at kernel.org>
Will
More information about the linux-arm-kernel
mailing list