]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/TLB: Drop kvm_local_flush_tlb_all()
authorJames Hogan <james.hogan@imgtec.com>
Fri, 7 Oct 2016 21:32:13 +0000 (22:32 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:02 +0000 (15:21 +0000)
commita762a614c7f20430ec0f997132f74e9f1fc90c5c
treec270f1567e466d6a67d22a76bcca3933b1a27bcb
parentcc167d2be9942639d80c4d0b81ad6ec703910cb1
KVM: MIPS/TLB: Drop kvm_local_flush_tlb_all()

Now that KVM no longer uses wired entries we can safely use
local_flush_tlb_all() when we need to flush the entire TLB (on the start
of a new ASID cycle). This doesn't flush wired entries, which allows
other code to use them without KVM clobbering them all the time. It also
is more up to date, knowing about the tlbinv architectural feature,
flushing of micro TLB on cores where that is necessary (Loongson I
believe), and knows to stop the HTW while doing so.

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