x86/S3: Use percpu_traps_init() rather than opencoding SYSCALL/SYSENTER restoration
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 20 Apr 2020 13:54:30 +0000 (14:54 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Apr 2020 20:30:58 +0000 (21:30 +0100)
commitd059260755fdec1614136b39fc65ddc48f5fd729
treef94d5ec19e1d7b41001f25d89e5bf07cb2ffc0c0
parentdf669de074c395a3b2eeb975fddd3da4c148da13
x86/S3: Use percpu_traps_init() rather than opencoding SYSCALL/SYSENTER restoration

This make the S3 BSP path consistent with AP paths, and reduces the amount of
state needing stashing specially.  Also, it takes care of re-setting up Xen's
LBR configuration if requested, which was missing previously.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/power.c
xen/arch/x86/acpi/suspend.c