mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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>
27 lines
465 B
Makefile
27 lines
465 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for LoongArch KVM support
|
|
#
|
|
|
|
include $(srctree)/virt/kvm/Makefile.kvm
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
|
|
obj-y += switch.o
|
|
|
|
kvm-y += exit.o
|
|
kvm-y += interrupt.o
|
|
kvm-y += main.o
|
|
kvm-y += mmu.o
|
|
kvm-y += timer.o
|
|
kvm-y += tlb.o
|
|
kvm-y += vcpu.o
|
|
kvm-y += vm.o
|
|
kvm-y += intc/ipi.o
|
|
kvm-y += intc/dmsintc.o
|
|
kvm-y += intc/eiointc.o
|
|
kvm-y += intc/pch_pic.o
|
|
kvm-y += irqfd.o
|
|
|
|
CFLAGS_exit.o += $(call cc-disable-warning, override-init)
|