Re: [PATCH v1] LoongArch: Handle special PC in unwind_next_frame()

From: Tiezhu Yang

Date: Wed Nov 26 2025 - 20:33:00 EST


On 2025/11/26 下午5:27, Huacai Chen wrote:
On Wed, Nov 26, 2025 at 5:09 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
...
+#if IS_ENABLED(CONFIG_KVM)
+void (*get_kvm_entry_info)(unsigned long *old, unsigned long *new,
unsigned long *size);
+EXPORT_SYMBOL_GPL(get_kvm_entry_info);
+#endif
Define in unwind.c then you don't need to duplicate it.

OK, makes sense.

unsigned long unwind_get_return_address(struct unwind_state *state)
...
+#if IS_ENABLED(CONFIG_KVM)
+ unsigned long old, new, size;
Define them in the if block, and you can consider removing all "#if
IS_ENABLED(CONFIG_KVM)".

OK, will do it in the next version.

Thanks,
Tiezhu