[PATCH 0/2] MIPS: Export functions used by lose_fpu(1) for KVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <pbonzini@xxxxxxxxxx>
Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Cc: Paul Burton <paul.burton@xxxxxxxxxx>
Cc: Gleb Natapov <gleb@xxxxxxxxxx>
Cc: kvm@xxxxxxxxxxxxxxx
Cc: linux-mips@xxxxxxxxxxxxxx
Cc: <stable@xxxxxxxxxxxxxxx>

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]