These two patches export the _save_fp and _save_msa asm function used by
the lose_fpu(1) macro to GPL modules so that KVM can make use of it when
it is built as a module.

This fixes the following build errors when CONFIG_KVM=m [and
CONFIG_CPU_HAS_MSA=y] due to commit f798217dfd03 ("KVM: MIPS: Don't leak
FPU/DSP to guest"):

ERROR: "_save_fp" [arch/mips/kvm/kvm.ko] undefined!
ERROR: "_save_msa" [arch/mips/kvm/kvm.ko] undefined!

The two parts are separated because the commit they fix is marked for
stable, and _save_msa only exists since v3.15, so only the first patch
needs to be applied to stable branches v3.10..v3.14, but both will be
needed on stable branches v3.15..v3.19.

Ralf: Since the broken commit exists in the KVM tree, it probably makes
sense to be applied there, so an Ack would be appreciated.

Fixes: f798217dfd03 (KVM: MIPS: Don't leak FPU/DSP to guest)
Cc: Paolo Bonzini <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Gleb Natapov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: <[email protected]>

James Hogan (2):
  MIPS: Export FP functions used by lose_fpu(1) for KVM
  MIPS: Export MSA functions used by lose_fpu(1) for KVM

 arch/mips/kernel/mips_ksyms.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
2.0.5

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to