Re: [patch 4/6] Convert PDA into the percpu section
- From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 12:54:17 +1000
On Sat, 2007-03-31 at 04:35 +0200, Andi Kleen wrote:
On Saturday 31 March 2007 04:00, Jeremy Fitzhardinge wrote:
Currently x86 (similar to x84-64) has a special per-cpu structure
called "i386_pda" which can be easily and efficiently referenced via
the %fs register. An ELF section is more flexible than a structure,
allowing any piece of code to use this area. Indeed, such a section
already exists: the per-cpu area.
Hmm, I'm a little reluctant. This moves i386 more away from x86-64
again. If we ever merge them it would mean more work. Do you really need it?
Well, I think the merge should go the other way in this case: this
really does simplify things.
The only thing stopping x86-64 from doing the same as i386 is the
stack-protector stuff. And that can be fixed (unfortunately requires a
gcc patch to change the %gs:40 to %gs:__gcc_stack_protector_offset and
emit a weak absolute symbol __gss_stack_protector_offset = 40).
I shall prepare a patch for that next week; I've been busy Kleening up
lguest 8)
Rusty.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [patch 0/6] i386 gdt and percpu cleanups
- From: Jeremy Fitzhardinge
- [patch 4/6] Convert PDA into the percpu section
- From: Jeremy Fitzhardinge
- Re: [patch 4/6] Convert PDA into the percpu section
- From: Andi Kleen
- [patch 0/6] i386 gdt and percpu cleanups
- Prev by Date: Re: [3/4] 2.6.21-rc5: known regressions (v2)
- Next by Date: Re: [patch 0/6] i386 gdt and percpu cleanups
- Previous by thread: Re: [patch 4/6] Convert PDA into the percpu section
- Next by thread: Re: [patch 4/6] Convert PDA into the percpu section
- Index(es):
Relevant Pages
- Re: [patch 4/6] Convert PDA into the percpu section
... On Saturday 31 March 2007 04:00, Jeremy Fitzhardinge wrote: ... the %fs register.
... An ELF section is more flexible than a structure, ... already exists: the per-cpu
area. ... (Linux-Kernel) - Re: [PATCH 8/8] Convert PDA into the percpu section
... the %fs register. ... An ELF section is more flexible than a structure,
... already exists: the per-cpu area. ... Removes the PDA and uses per-cpu variables
for each current member. ... (Linux-Kernel) - Re: [PATCH 8/8] Convert PDA into the percpu section
... the %fs register. ... An ELF section is more flexible than a structure,
... already exists: the per-cpu area. ... wide ranges of the kernel to segment
prefixes again. ... (Linux-Kernel) - Re: Task watchers v2
... new task struct first becomes available. ... What's the point of the ELF
hackery? ... The patches to allow modules to register task watchers does make
things ... (Linux-Kernel)