History

KVM: arm64: Symbolize the nVHE HYP addresses

Reintroduce the __kvm_nvhe_ symbols in kallsyms, ignoring the local symbols in this namespace. The local symbols are not informative and can cause aliasing issues when symbolizing the addresses. With the necessary symbols now in kallsyms we can symbolize nVHE addresses using the %p print format specifier: [ 98.916444][ T426] kvm [426]: nVHE hyp panic at: [<ffffffc0096156fc>] __kvm_nvhe_overflow_stack+0x8/0x34!

Kalesh Singh committed 4 years ago

Commit 6ccf9cb1 parent 66de19f2 files · +7 −9Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/kallsyms.c+2−1
@@ -111,7 +111,8 @@ static bool is_ignored_symbol(const char *name, char type) · 110 unmodified lines
111 ".L", /* local labels, .LBB,.Ltmpxxx,.L__unnamed_xx,.LASANPC, etc. */111 ".L", /* local labels, .LBB,.Ltmpxxx,.L__unnamed_xx,.LASANPC, etc. */
112 "__crc_", /* modversions */112 "__crc_", /* modversions */
113 "__efistub_", /* arm64 EFI stub namespace */113 "__efistub_", /* arm64 EFI stub namespace */
114 "__kvm_nvhe_", /* arm64 non-VHE KVM namespace */114 "__kvm_nvhe_$", /* arm64 local symbols in non-VHE KVM namespace */
115 "__kvm_nvhe_.L", /* arm64 local symbols in non-VHE KVM namespace */
115 "__AArch64ADRPThunk_", /* arm64 lld */116 "__AArch64ADRPThunk_", /* arm64 lld */
116 "__ARMV5PILongThunk_", /* arm lld */117 "__ARMV5PILongThunk_", /* arm lld */
117 "__ARMV7PILongThunk_",118 "__ARMV7PILongThunk_",