]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/MMU: Convert commpage fault handling to page tables
authorJames Hogan <james.hogan@imgtec.com>
Sat, 8 Oct 2016 00:16:21 +0000 (01:16 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:20:59 +0000 (15:20 +0000)
commit68ad39eb0a120ccfa2838a0f2604a36ce9ff2dca
treed94bd09b1a0271c6442bfe9fe4cb97a7abcef7c5
parentd9087ed8a93ba848532587654126080de4b2f3de
KVM: MIPS/MMU: Convert commpage fault handling to page tables

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

For simplicity we no longer use a wired entry for the commpage (refill
should be much cheaper with the fast-path handler anyway). Since we
don't need to manipulate the TLB directly any longer, move the function
from tlb.c to mmu.c. This puts it closer to the similar functions
handling KSeg0 and TLB mapped page faults from the guest.

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