MIPS: Probe guest MVH
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Mar 2017 10:15:11 +0000 (10:15 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 28 Mar 2017 13:49:15 +0000 (14:49 +0100)
commita929bdc52be658fd622c2d0f9fdf1d333aea34fd
tree26960ebddc5a91455b498deca9054e46962668be
parenta7c7ad6c3e0a2ae88625df4e41c1c7305aa26f04
MIPS: Probe guest MVH

Probe for availablility of M{T,F}HC0 instructions used with e.g. XPA in
the VZ guest context, and make it available via cpu_guest_has_mvh. This
will be helpful in properly emulating the MAAR registers in KVM for MIPS
VZ.

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/cpu-features.h
arch/mips/kernel/cpu-probe.c