Re: [Xen-devel] [PATCH] x86/suspend: Simplify system table handling on resume

2019-08-28 Thread Andrew Cooper
On 28/08/2019 15:10, Jan Beulich wrote: > On 12.08.2019 20:21, Andrew Cooper wrote: >> 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 i

Re: [Xen-devel] [PATCH] x86/suspend: Simplify system table handling on resume

2019-08-28 Thread Jan Beulich
On 12.08.2019 20:21, Andrew Cooper wrote: > 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. Similarly,

[Xen-devel] [PATCH] x86/suspend: Simplify system table handling on resume

2019-08-12 Thread Andrew Cooper
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. Similarly, the correct IDT to use can be derived, and the LDT i