On 14.08.2025 20:07, Andrew Cooper wrote: > As things stand, we set up AP/S3 exception handling marginally after the > fragile activity of setting up shadow stacks. Shadow stack setup is going to > get more complicated under FRED. > > Introduce percpu_early_traps_init() and call it ahead of setting up shadow > stacks. To start with, call load_system_tables() which is sufficient to set > up full exception handling. > > In order to handle exceptions, current and the speculation controls needs to > work. cpu_smpboot_alloc() already constructs some of the AP's top-of-stack > block, so have it set up a little more. Zero the whole structure to subsume > other misc setup. > > This gets us complete exception coverage of setting up shadow stacks, rather > than dying with a triple fault. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>