Re: [Xen-devel] [PATCH v2] x86-64/Xen: fix stack switching

2018-11-22 Thread Jan Beulich
>>> On 21.11.18 at 16:24, wrote: > On Wed, Nov 21, 2018 at 2:10 AM Jan Beulich wrote: >> --- 4.20-rc3/arch/x86/entry/entry_64.S >> +++ 4.20-rc3-x86_64-stack-switch-Xen/arch/x86/entry/entry_64.S >> @@ -1380,6 +1380,12 @@ ENTRY(nmi) >> swapgs >> cld >> SWITCH_TO_KERNEL_CR3 s

Re: [Xen-devel] [PATCH v2] x86-64/Xen: fix stack switching

2018-11-21 Thread Andy Lutomirski
On Wed, Nov 21, 2018 at 2:10 AM Jan Beulich wrote: > > While in the native case entry into the kernel happens on the trampoline > stack, PV Xen kernels get entered with the current thread stack right > away. Hence source and destination stacks are identical in that case, > and special care is need

[Xen-devel] [PATCH v2] x86-64/Xen: fix stack switching

2018-11-21 Thread Jan Beulich
While in the native case entry into the kernel happens on the trampoline stack, PV Xen kernels get entered with the current thread stack right away. Hence source and destination stacks are identical in that case, and special care is needed. Other than in sync_regs() the copying done on the INT80 p