MIPS: KVM: Use raw_cpu_has_fpu in kvm_mips_guest_can_have_fpu()
authorJames Hogan <james.hogan@imgtec.com>
Wed, 15 Jun 2016 18:29:50 +0000 (19:29 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 21:58:24 +0000 (23:58 +0200)
commit19451e51012fa49070252b1b8157460d36618cee
treebf100e1b8a89cfcfeae49189cc4209d73468d1fe
parentf5c43bd4218c0d7bd65b010fd080cd6edeaeb4c8
MIPS: KVM: Use raw_cpu_has_fpu in kvm_mips_guest_can_have_fpu()

We need to use kvm_mips_guest_can_have_fpu() when deciding which
registers to list with KVM_GET_REG_LIST, however it causes warnings with
preemption since it uses cpu_has_fpu. KVM is only really supported on
CPUs which have symmetric FPUs, so switch to raw_cpu_has_fpu to avoid
the warning.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: 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
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h