Re: Some issues with x86's TLS [amd64: USER_LDT (and wine)]

2017-07-25 Thread Maxime Villard
Hi, I've ended up with [1]. Adrien Fernandes tells me that with this patch applied, Wine works. There are still several problems with the packaging, because it is a netbsd32 process and it has several 32bit dependencies. Few people have shown interest in this, so if someone comes up with a functi

Re: Some issues with x86's TLS [amd64: USER_LDT (and wine)]

2017-02-12 Thread Maxime Villard
Le 12/02/2017 à 20:21, Joerg Sonnenberger a écrit : On Sun, Feb 12, 2017 at 08:07:06PM +0100, Maxime Villard wrote: I see only two ways of fixing all of that: - change amd64 so that it saves/restores fsgs like i386. This is not desirable since it moves the cost from one-per-context-switch to

Re: Some issues with x86's TLS [amd64: USER_LDT (and wine)]

2017-02-12 Thread Joerg Sonnenberger
On Sun, Feb 12, 2017 at 08:07:06PM +0100, Maxime Villard wrote: > I see only two ways of fixing all of that: > - change amd64 so that it saves/restores fsgs like i386. This is not desirable since it moves the cost from one-per-context-switch to once-per-return-to-userland. That said, for USER_LDT

Some issues with x86's TLS [amd64: USER_LDT (and wine)]

2017-02-12 Thread Maxime Villard
There are several design issues that prevent us from implementing USER_LDT on amd64 easily. I don't quite know how to fix them yet; I'm just posting here some thoughts in case someone is interested or finds an easy way of fixing all of that. Let's consider a 32bit lwp, from netbsd32 for example,