]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf31313040e569122160ba81c6ebc8776416c903d
treed1530ac61ffd25168000f48b684425d15468fb59
parent1d8ebe5212361a595c44d8f416a9b03ff9f8158e
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