* [PATCH] x86/S3: don't lose previously collected CPU data
@ 2025-07-17 10:14 Jan Beulich
2025-07-17 10:42 ` Roger Pau Monné
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2025-07-17 10:14 UTC (permalink / raw)
To: xen-devel@lists.xenproject.org; +Cc: Andrew Cooper, Roger Pau Monné
smp_store_cpu_info() doesn't call identify_cpu() again during S3 resume,
hence it is wrong to overwrite APs' data using boot_cpu_data. With
7126b7f806d54 ("x86/CPU: re-work populating of cpu_data[]") this now
results in a crash, as the cpu_to_socket() use in smp_store_cpu_info()
then obtains a bad socket number, much like was already observed in [1].
[1] https://lists.xen.org/archives/html/xen-devel/2025-06/msg01879.html
Fixes: bb502a8ca5925 ("x86: check feature flags after resume")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -370,7 +370,9 @@ void asmlinkage start_secondary(void)
cpu_init();
- initialize_cpu_data(cpu);
+ /* During resume, must not clear previously collected data. */
+ if ( system_state != SYS_STATE_resume )
+ initialize_cpu_data(cpu);
microcode_update_one();
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-17 10:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17 10:14 [PATCH] x86/S3: don't lose previously collected CPU data Jan Beulich
2025-07-17 10:42 ` Roger Pau Monné
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.