Skip to content

Commit fe3e0a1

Browse files
jgross1bp3tk0v
authored andcommitted
x86/xen: Fix secondary processors' FPU initialization
Moving the call of fpu__init_cpu() from cpu_init() to start_secondary() broke Xen PV guests, as those don't call start_secondary() for APs. Call fpu__init_cpu() in Xen's cpu_bringup(), which is the Xen PV replacement of start_secondary(). Fixes: b81fac9 ("x86/fpu: Move FPU initialization into arch_cpu_finalize_init()") Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0303c97 commit fe3e0a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/xen/smp_pv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static void cpu_bringup(void)
6363

6464
cr4_init();
6565
cpu_init();
66+
fpu__init_cpu();
6667
touch_softlockup_watchdog();
6768

6869
/* PVH runs in ring 0 and allows us to do native syscalls. Yay! */

0 commit comments

Comments
 (0)