]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/T&E: Activate GVA page tables in guest context
authorJames Hogan <james.hogan@imgtec.com>
Fri, 7 Oct 2016 22:58:53 +0000 (23:58 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:20:51 +0000 (15:20 +0000)
commit81e1e8508c716b3b5ba44ba07b97f7beb12a7e3d
treeff60812dff7d786f1d74d03bdfdc681a3aeb3a09
parenta94b19604851ef34a380d890bab173ef28421238
KVM: MIPS/T&E: Activate GVA page tables in guest context

Activate the GVA page tables when in guest context. This will allow the
normal Linux TLB refill handler to fill from it when guest memory is
read, as well as preventing accidental reading from user memory.

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
arch/mips/include/asm/mmu_context.h
arch/mips/kvm/entry.c
arch/mips/kvm/trap_emul.c