Skip to content

i386 gdt and percpu cleanups

Jeremy Fitzhardinge lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6i386: Account for module percpu space separately from kernel percpuinclude/asm-alpha/percpu.h include/asm-sparc64/percpu.h include/asm-x86_64/percpu.h +3 more+11 -410 replies
2/6Allow percpu variables to be page-alignedarch/alpha/kernel/vmlinux.lds.S arch/arm/kernel/vmlinux.lds.S arch/cris/arch-v32/vmlinux.lds.S +18 more+29 -310 replies
3/6Page-align the GDTarch/i386/kernel/cpu/common.c arch/i386/kernel/entry.S arch/i386/kernel/head.S +2 more+13 -80 replies
4/6Convert PDA into the percpu sectionarch/i386/kernel/asm-offsets.c arch/i386/kernel/cpu/common.c arch/i386/kernel/entry.S +14 more+179 -1973 replies
5/6cleanups to help using per-cpu variables from asminclude/asm-i386/percpu.h+7 -50 replies
6/6Define per_cpu_offsetinclude/asm-i386/percpu.h+2 -00 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchIngo MolnarJeremy Fitzhardinge
1/6
2/6A-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/6] i386 gdt and percpu cleanups

Hi Andi,

This is a series of patches based on your latest queue (as of the other day, at least).

It includes:
- the most recent patch to compute the appropriate amount of percpu space to allocate, using a separate reservation for modules where needed.
- make the percpu sections page-aligned, so that percpu variables can be page aligned if needed (which is used by gdt_page)
- page-align the gdt
- remove the pda and convert all pda usages into percpu variables (percpu variables still use the %fs prefix mechanism the pda used)
- some improvements to asm-i386/percpu.h to make asm access to percpu variables easy
- define per_cpu_offset in asm-i386/percpu.h, to match asm-generic/

Thanks,
J