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)
commit7faa6eec6991715d6c1d85c192738dcac405ab89
treeff60812dff7d786f1d74d03bdfdc681a3aeb3a09
parentf7f1427dc0c67e21ba9ec2200b7c8853535b3842
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