Skip to content

Using %gs for per-cpu areas on x86

Rusty Russell lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Use per-cpu GDT tables from early in bootarch/i386/kernel/cpu/common.c arch/i386/kernel/head.S arch/i386/kernel/setup.c +2 more+47 -1080 replies
2/7arch/i386/kernel/asm-offsets.c arch/i386/kernel/cpu/common.c arch/i386/kernel/entry.S +8 more+85 -582 replies
3/7Update sys_vm86 to cope with changed pt_regs and %gs usage.arch/i386/kernel/vm86.c include/asm-i386/vm86.h+76 -620 replies
4/7Fix places where using %gs changes the usermode ABI.arch/i386/kernel/process.c arch/i386/kernel/ptrace.c include/asm-i386/elf.h+10 -160 replies
5/7Use %gs for per-cpu sections in kernelarch/i386/kernel/cpu/common.c arch/i386/kernel/setup.c arch/i386/kernel/smpboot.c +2 more+172 -1220 replies
6/7(Optional) implement smp_processor_id() as a per-cpu vararch/i386/kernel/cpu/common.c arch/i386/kernel/smpboot.c include/asm-i386/smp.h+8 -21 reply
7/7(Optional) implement current as a per-cpu vararch/i386/kernel/cpu/common.c arch/i386/kernel/process.c arch/i386/kernel/setup.c +2 more+15 -121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Using %gs for per-cpu areas on x86

OK, here it is. Benchmarks still coming. This is against Andi's 2.6.18-rc7-git3 tree, and replaces the patches between (and not including) i386-pda-asm-offsets and i386-early-fault.

One patch is identical, one is mildly modified, the rest are re-implemented but inspired by Jeremy's PDA work.

Thanks,
Rusty.

Signature · 1 line
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law