From: Tiezhu Yang <yangtiezhu@loongson.cn>
To: Jinyang He <hejinyang@loongson.cn>
Cc: Huacai Chen <chenhuacai@kernel.org>,
Xi Zhang <zhangxi@kylinos.cn>,
Xianglai Li <lixianglai@loongson.cn>,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
Bibo Mao <maobibo@loongson.cn>
Subject: Re: [PATCH v1] LoongArch: Handle special PC in unwind_next_frame()
Date: Tue, 9 Dec 2025 10:08:23 +0800 [thread overview]
Message-ID: <e4101f85-d580-0739-4282-13c80abceed3@loongson.cn> (raw)
In-Reply-To: <45cf4a09-8895-73fb-c019-1b1f88501eed@loongson.cn>
On 2025/11/26 下午5:09, Tiezhu Yang wrote:
...
>> I will do more test and send v2 later.
>
> Here are the draft changes:
...
> +#if IS_ENABLED(CONFIG_KVM)
> + unsigned long old, new, size;
> +
> + if (get_kvm_entry_info) {
> + get_kvm_entry_info(&old, &new, &size);
> + if (ra >= new && ra < new + size)
> + return old + (ra - new);
> + }
> +#endif
...
>
> I tested with config UNWINDER_ORC, it can unwind from kvm_handle_exit()
> to its previous frame kvm_exc_entry() which is the end of stack, there
> is no "unreliable stack" in debug mode and also no timeout for kernel
> livepatching.
>
> I also tested with config UNWINDER_PROLOGUE and config UNWINDER_GUESS,
> no build errors and the virtual machine can boot normally.
>
> I would like to receive comments for the draft changes first and then
> send the formal v2, the function and variable name may be not proper,
> so any comments are welcome.
>
> Since the merge window is coming soon and I am busy with the other
> higher priority stuff, so maybe I will send v2 after the merge window.
FYI, after some internal discussions, it will only modify the code of
KVM to fix this problem, so please ignore this patch and the above diff,
I will not send new version and please wait for the KVM patch.
Thanks,
Tiezhu
prev parent reply other threads:[~2025-12-09 2:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-25 6:33 Tiezhu Yang
2025-11-25 8:08 ` Huacai Chen
2025-11-25 8:54 ` Tiezhu Yang
2025-11-25 9:05 ` Huacai Chen
2025-11-26 5:36 ` Tiezhu Yang
2025-11-25 10:52 ` Jinyang He
2025-11-26 6:08 ` Tiezhu Yang
2025-11-26 6:28 ` Tiezhu Yang
2025-11-26 9:09 ` Tiezhu Yang
2025-11-26 9:27 ` Huacai Chen
2025-11-27 1:32 ` Tiezhu Yang
2025-11-26 9:56 ` Bibo Mao
2025-11-27 1:39 ` Tiezhu Yang
2025-11-27 1:53 ` Bibo Mao
2025-11-27 2:53 ` Jinyang He
2025-11-27 2:58 ` Bibo Mao
2025-12-09 2:08 ` Tiezhu Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4101f85-d580-0739-4282-13c80abceed3@loongson.cn \
--to=yangtiezhu@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=hejinyang@loongson.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=lixianglai@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=zhangxi@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®