Ingo Molnar wrote:
yes - but loading a null selector is a special-case: you dont have to invalidate/reload the shadow, you just have to turn access off. This might or might not make a difference on modern CPUs (it makes a difference with older CPUs) - but it's worth a try nevertheless. You measured a 9 cycles degradation with the %gs method, we could recover some of that.
It's a worthwhile experiment. The gain would be the NULL selector load, but the loss would be an additional segment reload on context switch and TLS ABI incompatibility (which is more difficult to quantify).
First step is to make sure the PDA is set up before hitting C code... J - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- References:
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Andi Kleen <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Andi Kleen <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Andrew Morton <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Jeremy Fitzhardinge <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- From: Ingo Molnar <[email protected]>
- Re: 2.6.18-rc6-mm1: GPF loop on early boot
- Prev by Date: Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- Next by Date: Re: 2.6.18-rc6-mm1: GPF loop on early boot
- Previous by thread: Re: 2.6.18-rc6-mm1: GPF loop on early boot
- Next by thread: Re: 2.6.18-rc6-mm1: GPF loop on early boot
- Index(es):