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

2018-05-14 Thread Juergen Gross
On 14/05/18 12:28, Jan Beulich wrote: On 08.05.18 at 04:38, wrote: >> On Mon, May 7, 2018 at 5:16 AM Jan Beulich wrote: >> >>> While on native entry into the kernel happens on the trampoline stack, >>> PV Xen kernels are being entered with the current thread stack right >>> away. Hence sourc

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

2018-05-14 Thread Jan Beulich
>>> On 08.05.18 at 04:38, wrote: > On Mon, May 7, 2018 at 5:16 AM Jan Beulich wrote: > >> While on native entry into the kernel happens on the trampoline stack, >> PV Xen kernels are being entered with the current thread stack right >> away. Hence source and destination stacks are identical in t

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

2018-05-07 Thread Andy Lutomirski
On Mon, May 7, 2018 at 5:16 AM Jan Beulich wrote: > While on native entry into the kernel happens on the trampoline stack, > PV Xen kernels are being entered with the current thread stack right > away. Hence source and destination stacks are identical in that case, > and special care is needed.

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

2018-05-07 Thread Jan Beulich
While on native entry into the kernel happens on the trampoline stack, PV Xen kernels are being 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 path