summaryrefslogtreecommitdiff
path: root/arch/mips/kvm/Makefile
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2020-05-23 10:56:37 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-04 20:50:39 +0300
commitf21db3090de2c056728dee76d5fb66343aaf6dd1 (patch)
tree4b5789f4ca1a6f9d4c9f3aa83faac86d190aab4b /arch/mips/kvm/Makefile
parent3f51d8fcac7a0925fb1222d932cb3baa776b1e79 (diff)
downloadlinux-f21db3090de2c056728dee76d5fb66343aaf6dd1.tar.xz
KVM: MIPS: Add Loongson-3 Virtual IPI interrupt support
This patch add Loongson-3 Virtual IPI interrupt support in the kernel. The current implementation of IPI emulation in QEMU is based on GIC for MIPS, but Loongson-3 doesn't use GIC. Furthermore, IPI emulation in QEMU is too expensive for performance (because of too many context switches between Host and Guest). With current solution, the IPI delay may even cause RCU stall warnings in a multi-core Guest. So, we design a faster solution that emulate IPI interrupt in kernel (only used by Loongson-3 now). Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com> Signed-off-by: Huacai Chen <chenhc@lemote.com> Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Message-Id: <1590220602-3547-11-git-send-email-chenhc@lemote.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/Makefile')
-rw-r--r--arch/mips/kvm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile
index 0a3cef6153fd..506c4ac0ba1c 100644
--- a/arch/mips/kvm/Makefile
+++ b/arch/mips/kvm/Makefile
@@ -13,6 +13,9 @@ kvm-objs := $(common-objs-y) mips.o emulate.o entry.o \
fpu.o
kvm-objs += hypcall.o
kvm-objs += mmu.o
+ifdef CONFIG_CPU_LOONGSON64
+kvm-objs += loongson_ipi.o
+endif
ifdef CONFIG_KVM_MIPS_VZ
kvm-objs += vz.o