KVM: MIPS/MMU: Convert TLB mapped faults to page tables
authorJames Hogan <james.hogan@imgtec.com>
Sat, 8 Oct 2016 00:15:19 +0000 (01:15 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:20:58 +0000 (15:20 +0000)
commit7e3d2a750bcb0a7fed84e14e562d752c39fdf542
tree615c2276a5a7a60fedc31bc5d80a59fb0244ef78
parentfb99589391a9ed2e505dc7c3d02651a1a7b9f72b
KVM: MIPS/MMU: Convert TLB mapped faults to page tables

Now that we have GVA page tables and an optimised TLB refill handler in
place, convert the handling of page faults in TLB mapped segment from
the guest to fill a single GVA page table entry and invalidate the TLB
entry, rather than filling a TLB entry pair directly.

Also remove the now unused kvm_mips_get_{kernel,user}_asid() functions
in mmu.c and kvm_mips_host_tlb_write() in tlb.c.

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/kvm_host.h
arch/mips/kvm/emulate.c
arch/mips/kvm/mmu.c
arch/mips/kvm/tlb.c