[PATCH v2 0/2] Dump instructions on panic for pKVM/nvhe
Marc Zyngier
maz at kernel.org
Mon Sep 15 05:07:36 PDT 2025
On Tue, 09 Sep 2025 13:36:29 +0000, Mostafa Saleh wrote:
> This small series, adds support for dumping the faulting instructions on
> panic in pKVM and nvhe, similarly to what the kernel does as follow:
> [ 12.012126] kvm [190]: nVHE hyp BUG at: [<ffff8000811c5f64>] __kvm_nvhe_handle___kvm_vcpu_run+0x4/0x8!
> [ 12.015747] kvm [190]: Cannot dump pKVM nVHE stacktrace: !CONFIG_PROTECTED_NVHE_STACKTRACE
> [ 12.016044] Code: a8c17bfd d50323bf d65f03c0 d503245f (d4210000)
> [ 12.016082] kvm [190]: Hyp Offset: 0xffeff6887fe00000
> [ 12.016325] Kernel panic - not syncing: HYP panic:
> [ 12.016325] PS:204023c9 PC:000f8978013c5f64 ESR:00000000f2000800
> [ 12.016325] FAR:fff00000c016e01c HPFAR:00000000010016e0 PAR:0000000000000000
>
> [...]
Applied to next, thanks!
[1/2] KVM: arm64: Dump instruction on hyp panic
commit: 92b7624fe052ffb0b7b70d96cd514e02e91664a8
[2/2] KVM: arm64: Map hyp text as RO and dump instr on panic
commit: 6f1ece1e868839cf81a28c77e19420ff57df7ecf
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list