Re: save and restore %gs and gs.base on context switches

2012-04-19 Thread Mike Belopuhov
On Sat, Apr 14, 2012 at 13:35 +0200, Mike Belopuhov wrote: > some software needs fully functional per-thread %gs base address, > hence the diff. limited testing shows no regressions. > INTR_RESTORE_SELECTORS changes include: > - %r11 is used to store curpcb instead of rdx that is used for >wr

Re: save and restore %gs and gs.base on context switches

2012-04-15 Thread Mark Kettenis
> some software needs fully functional per-thread %gs base address, Which software?

Re: save and restore %gs and gs.base on context switches

2012-04-14 Thread Mike Belopuhov
On Sat, Apr 14, 2012 at 3:42 PM, Mark Kettenis wrote: >> > some software needs fully functional per-thread %gs base address, >> > hence the diff. limited testing shows no regressions. >> > INTR_RESTORE_SELECTORS changes include: >> > - %r11 is used to store curpcb instead of rdx that is used

Re: save and restore %gs and gs.base on context switches

2012-04-14 Thread Mark Kettenis
> > some software needs fully functional per-thread %gs base address, > > hence the diff. limited testing shows no regressions. > > INTR_RESTORE_SELECTORS changes include: > > - %r11 is used to store curpcb instead of rdx that is used for > > wrmsr and gets trashed (it's safe to use %r11

Re: save and restore %gs and gs.base on context switches

2012-04-14 Thread Mark Kettenis
> some software needs fully functional per-thread %gs base address, > hence the diff. limited testing shows no regressions. > INTR_RESTORE_SELECTORS changes include: > - %r11 is used to store curpcb instead of rdx that is used for > wrmsr and gets trashed (it's safe to use %r11 because it

save and restore %gs and gs.base on context switches

2012-04-14 Thread Mike Belopuhov
some software needs fully functional per-thread %gs base address, hence the diff. limited testing shows no regressions. INTR_RESTORE_SELECTORS changes include: - %r11 is used to store curpcb instead of rdx that is used for wrmsr and gets trashed (it's safe to use %r11 because it's restored