Skip to contentSkip to conversation

x86/fpu/xstate: Export fpu_fpregs_owner_ctx

PATCH In review Yu-cheng Yu 2 participants 3 messages Dec 6, 2019 – Dec 7, 2019 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/fpu/xstate: Export fpu_fpregs_owner_ctx

After applying my "Invalidate fpregs when __fpu_restore_sig() fails" patch [1], the following happens:

ERROR: "fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!

Fix it by exporting the symbol. I apologize for missing this!

[1] https://lkml.kernel.org/r/[email protected]/

---
 arch/x86/kernel/fpu/core.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/fpu/core.c +1 -0
index 743ff5ea4076..4e5151e43a2c 100644
@@ -42,6 +42,7 @@ static DEFINE_PER_CPU(bool, in_kernel_fpu);
  * Track which context is using the FPU on the CPU:
  */
 DEFINE_PER_CPU(struct fpu *, fpu_fpregs_owner_ctx);
+EXPORT_SYMBOL_GPL(fpu_fpregs_owner_ctx);
 
 static bool kernel_fpu_disabled(void)
 {
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 6 lines · Yu-cheng Yu

After applying my "Invalidate fpregs when __fpu_restore_sig() fails" patch [1], the following happens:

ERROR: "fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!

Fix it by exporting the symbol. I apologize for missing this!

So why a separate patch? Just send a v2 as a reply to the incomplete one.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#2 lore raw
Quoted 10 lines · Borislav Petkov
Quoted 6 lines · Yu-cheng Yu

After applying my "Invalidate fpregs when __fpu_restore_sig() fails" patch [1], the following happens:

ERROR: "fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!

Fix it by exporting the symbol. I apologize for missing this!

So why a separate patch? Just send a v2 as a reply to the incomplete one.

I just did that. Thanks!

Yu-cheng