x86/smpboot: Write the top-of-stack block in cpu_smpboot_alloc()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Apr 2020 13:38:02 +0000 (14:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 19:18:19 +0000 (20:18 +0100)
commit434596bbd44ad75c3f84396a2b2d283eeb9f0688
treef024436a74ab8e6bbcdf26af7646a1b0829ece0e
parent2e3d87cc734a895ef5b486926274a178836b67a9
x86/smpboot: Write the top-of-stack block in cpu_smpboot_alloc()

This allows the AP boot assembly use per-cpu variables, and brings the
semantics closer to that of the BSP, which can use per-cpu variables from the
start of day.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/smpboot.c
xen/include/asm-x86/current.h