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

2019-01-16 Thread Andy Lutomirski
On Tue, Jan 15, 2019 at 8:58 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

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

2019-01-16 Thread Juergen Gross
On 15/01/2019 17:58, 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 needed. > > Other

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

2019-01-15 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