summaryrefslogtreecommitdiff
path: root/arch/loongarch/Kbuild
diff options
context:
space:
mode:
authorXianglai Li <lixianglai@loongson.cn>2026-05-04 09:00:37 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-05-04 09:00:37 +0800
commit5203012fa6045aac4b69d4e7c212e16dcf38ef10 (patch)
treebc7c5eb5724e0b421c7aa367a7933800bdd758ac /arch/loongarch/Kbuild
parent7e2c41bc62e436f465ee1ff7ebc14e35c99d95fb (diff)
LoongArch: KVM: Compile switch.S directly into the kernel
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. Cc: stable@vger.kernel.org Signed-off-by: Xianglai Li <lixianglai@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/Kbuild')
-rw-r--r--arch/loongarch/Kbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/Kbuild b/arch/loongarch/Kbuild
index beb8499dd8ed..1c7a0dbe5e72 100644
--- a/arch/loongarch/Kbuild
+++ b/arch/loongarch/Kbuild
@@ -3,7 +3,7 @@ obj-y += mm/
obj-y += net/
obj-y += vdso/
-obj-$(CONFIG_KVM) += kvm/
+obj-$(subst m,y,$(CONFIG_KVM)) += kvm/
# for cleaning
subdir- += boot