Skip to content

Commit

Permalink
x86/xen: Fix secondary processors' FPU initialization
Browse files Browse the repository at this point in the history
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 <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230703130032.22916-1-jgross@suse.com
  • Loading branch information
Juergen Gross authored and Borislav Petkov (AMD) committed Jul 5, 2023
1 parent 0303c97 commit fe3e0a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/xen/smp_pv.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ static void cpu_bringup(void)

cr4_init();
cpu_init();
fpu__init_cpu();
touch_softlockup_watchdog();

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

0 comments on commit fe3e0a1

Please sign in to comment.