summaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm/Makefile
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-06-09 14:19:10 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-14 11:02:42 +0200
commit403015b323a297475919e1a8ccc1ceb0fcb85f5f (patch)
treed1530ac61ffd25168000f48b684425d15468fb59 /arch/mips/kvm/Makefile
parent31cf7498545c36cc992887bd6af17a496f26f681 (diff)
downloadop-kernel-dev-403015b323a297475919e1a8ccc1ceb0fcb85f5f.zip
op-kernel-dev-403015b323a297475919e1a8ccc1ceb0fcb85f5f.tar.gz
MIPS: KVM: Move non-TLB handling code out of tlb.c
Various functions in tlb.c perform higher level MMU handling, but don't strictly need to be statically built into the kernel as they don't directly manipulate TLB entries. Move these functions out into a separate mmu.c which will be built into the KVM kernel module. This allows them to directly reference KVM functions in the KVM kernel module in future. Module exports of these functions have been removed, since they aren't needed outside of KVM. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/Makefile')
-rw-r--r--arch/mips/kvm/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kvm/Makefile b/arch/mips/kvm/Makefile
index 637ebbe..0aabe40 100644
--- a/arch/mips/kvm/Makefile
+++ b/arch/mips/kvm/Makefile
@@ -10,6 +10,7 @@ common-objs-$(CONFIG_CPU_HAS_MSA) += msa.o
kvm-objs := $(common-objs-y) mips.o emulate.o locore.o \
interrupt.o stats.o commpage.o \
dyntrans.o trap_emul.o fpu.o
+kvm-objs += mmu.o
obj-$(CONFIG_KVM) += kvm.o
obj-y += callback.o tlb.o
OpenPOWER on IntegriCloud