MIPS: KVM: Move non-TLB handling code out of tlb.c
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:10 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:42 +0000 (11:02 +0200)
commit403015b323a297475919e1a8ccc1ceb0fcb85f5f
treed1530ac61ffd25168000f48b684425d15468fb59
parent31cf7498545c36cc992887bd6af17a496f26f681
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>
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/Makefile
arch/mips/kvm/mmu.c [new file with mode: 0644]
arch/mips/kvm/tlb.c