]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Clean up TLB management hazards
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:15 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:44 +0000 (11:02 +0200)
commite4dce8bd5881544015725d5bfc96992a4b985be4
tree7b8cde246a82400d6f8ff0ebe7053cadd238131e
parent8e3d6e9467747f91cbc40988fc9eecb07bd19e80
MIPS: KVM: Clean up TLB management hazards

KVM's host TLB handling routines were using tlbw hazard barrier macros
around tlb_read(). Now that hazard barrier macros exist for tlbr, update
this case to use them.

Also fix various other unnecessary hazard barriers in this code.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/tlb.c