Re: [PATCH v2 1/2] KVM: arm64: Dump instruction on hyp panic

From
Will Deacon <will@kernel.org>
Date
2025-09-15 10:54:50
Also in
kvmarm, lkml
Reply to
Mostafa Saleh, 2025-09-09
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@google.com>
Tested-by: Kunwu Chan <redacted>
Reviewed-by: Kunwu Chan <redacted>
---
 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@kernel.org>

Will
Thread (5 messages) 5 messages, 3 authors, last reply 2025-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help