]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fd865fbbb3401926ed0e7ab0de60ba97d54303f
tree26960ebddc5a91455b498deca9054e46962668be
parent543f64a759d2a10f867edf99ca3ed1035b8d8c7f
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