x86/suspend: Simplify system table handling on resume
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Aug 2019 17:40:04 +0000 (18:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Aug 2019 17:51:00 +0000 (18:51 +0100)
commitbb70bcb65b9708812bfb3f2cb86189fc347da2d7
tree2dd3c5dc35bd5b28491eef06c46712f6e21c3b88
parent08baf55f339756d412c922abdf69e1a81db09668
x86/suspend: Simplify system table handling on resume

load_TR() is used exclusively in the resume path, but jumps through a lot of
unnecessary hoops.  As suspend/resume is strictly on CPU0 in idle context, the
correct GDT to use is boot_gdt, which means it doesn't need saving on suspend.

Although doing more than strictly necessary, reuse load_system_tables(), which
is already used by APs on the S3 resume path.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/acpi/wakeup_prot.S
xen/arch/x86/traps.c
xen/include/asm-x86/desc.h