mips/kvm: Disable FPU on reset with KVM
authorJames Hogan <james.hogan@imgtec.com>
Fri, 27 Jun 2014 15:22:42 +0000 (16:22 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jul 2014 16:17:04 +0000 (18:17 +0200)
commit0e928b12c94a4eea56028dec676422b165063ea5
tree21db8caecc394b1963fc9844a5e1503368ba812c
parent0a2672b7ead72b7c788200499a63a4d5f2faa74a
mips/kvm: Disable FPU on reset with KVM

KVM doesn't yet support the MIPS FPU, or writing to the guest's Config1
register which contains the FPU implemented bit. Clear QEMU's version of
that bit on reset and display a warning that the FPU has been disabled.

The previous incorrect Config1 CP0 register value wasn't being passed to
KVM yet, however we should ensure it is set correctly now to reduce the
risk of breaking migration/loadvm to a future version of QEMU/Linux that
does support it.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-mips/kvm.c