]> 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)
commit139a9aac068223b75784504e83d78b8830564c02
treed1530ac61ffd25168000f48b684425d15468fb59
parentd823c13e5528fcb6cb950fe757f7f220cd119e26
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