]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: asm/tlb.h: Add UNIQUE_GUEST_ENTRYHI() macro
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Mar 2017 10:15:13 +0000 (10:15 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 28 Mar 2017 13:49:30 +0000 (14:49 +0100)
commita6c09b9f9d1c3b1daf8e24e5556d73b9303843ef
tree6f9e2001d732fb1438dd367207a7c55ec90b336f
parenteb0bab386622ecd5626462dc9eeeab082ac8b717
MIPS: asm/tlb.h: Add UNIQUE_GUEST_ENTRYHI() macro

Add a distinct UNIQUE_GUEST_ENTRYHI() macro for invalidation of guest
TLB entries by KVM, using addresses in KSeg1 rather than KSeg0. This
avoids conflicts with guest invalidation routines when there is no EHINV
bit to mark the whole entry as invalid, avoiding guest machine check
exceptions on Cavium Octeon III.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: 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
arch/mips/include/asm/tlb.h