diff options
author | James Hogan <james.hogan@imgtec.com> | 2015-02-06 11:56:27 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2015-03-27 22:25:20 +0100 |
commit | c2537ed9fb8e17d713e5e67fcede047699d25814 (patch) | |
tree | 1a4d37e5ddfa872efda4ae2ea42c1655a27ec3d0 /arch/mips/kvm/stats.c | |
parent | MIPS: KVM: Emulate MSA bits in COP0 interface (diff) | |
download | linux-c2537ed9fb8e17d713e5e67fcede047699d25814.tar.xz linux-c2537ed9fb8e17d713e5e67fcede047699d25814.zip |
MIPS: KVM: Add MSA exception handling
Add guest exception handling for MIPS SIMD Architecture (MSA) floating
point exceptions and MSA disabled exceptions.
MSA floating point exceptions from the guest need passing to the guest
kernel, so for these a guest MSAFPE is emulated.
MSA disabled exceptions are normally handled by passing a reserved
instruction exception to the guest (because no guest MSA was supported),
but the hypervisor can now handle them if the guest has MSA by passing
an MSA disabled exception to the guest, or if the guest has MSA enabled
by transparently restoring the guest MSA context and enabling MSA and
the FPU.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Diffstat (limited to 'arch/mips/kvm/stats.c')
-rw-r--r-- | arch/mips/kvm/stats.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kvm/stats.c b/arch/mips/kvm/stats.c index 3843828f3b91..888bb67070ac 100644 --- a/arch/mips/kvm/stats.c +++ b/arch/mips/kvm/stats.c @@ -26,7 +26,9 @@ char *kvm_mips_exit_types_str[MAX_KVM_MIPS_EXIT_TYPES] = { "Reserved Inst", "Break Inst", "Trap Inst", + "MSA FPE", "FPE", + "MSA Disabled", "D-Cache Flushes", }; |