From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Huacai Chen <chenhuacai@loongson.cn>
Cc: Sasha Levin <sashal@kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
Tianrui Zhao <zhaotianrui@loongson.cn>,
Bibo Mao <maobibo@loongson.cn>, Xuerui Wang <kernel@xen0n.name>,
stable@vger.kernel.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Xianglai Li <lixianglai@loongson.cn>
Subject: Re: [PATCH for 6.12] LoongArch: KVM: Compile switch.S directly into the kernel
Date: Fri, 15 May 2026 12:09:51 +0200 [thread overview]
Message-ID: <2026051542-acclaim-grew-bd5a@gregkh> (raw)
In-Reply-To: <20260513031224.2122119-1-chenhuacai@loongson.cn>
On Wed, May 13, 2026 at 11:12:24AM +0800, Huacai Chen wrote:
> From: Xianglai Li <lixianglai@loongson.cn>
>
> commit 5203012fa6045aac4b69d4e7c212e16dcf38ef10 upstream.
>
> If we directly compile the switch.S file into the kernel, the address of
> the kvm_exc_entry function will definitely be within the DMW memory area.
> Therefore, we will no longer need to perform a copy relocation of the
> kvm_exc_entry.
>
> So this patch compiles switch.S directly into the kernel, and then remove
> the copy relocation execution logic for the kvm_exc_entry function.
>
> Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> ---
> arch/loongarch/Kbuild | 2 +-
> arch/loongarch/include/asm/asm-prototypes.h | 20 ++++++++++++
> arch/loongarch/include/asm/kvm_host.h | 3 --
> arch/loongarch/kvm/Makefile | 3 +-
> arch/loongarch/kvm/main.c | 35 ++-------------------
> arch/loongarch/kvm/switch.S | 19 ++++++++---
> 6 files changed, 40 insertions(+), 42 deletions(-)
Does not apply properly to the 6.12.y tree :(
prev parent reply other threads:[~2026-05-15 10:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 3:12 [PATCH for 6.12] LoongArch: KVM: Compile switch.S directly into the kernel Huacai Chen
2026-05-15 10:09 ` Greg Kroah-Hartman [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=2026051542-acclaim-grew-bd5a@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=kernel@xen0n.name \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lixianglai@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=zhaotianrui@loongson.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.