Skip to content

x86: Cleanup idt, gdt/ldt/tss structs

Joe Damato kernel-janitors linux-newbie lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86: Cleanup x86 descriptors, remove a/b fields from structsinclude/asm-x86/desc_defs.h+13 -190 replies
2/12x86: Use new gate_struct for gate_descinclude/asm-x86/desc_defs.h+1 -11 reply
3/12x86: Cleanup usage of struct desc_structarch/x86/kernel/vmi_32.c drivers/lguest/interrupts_and_traps.c drivers/lguest/lg.h +1 more+10 -101 reply
4/12x86: Add macros for gate_descinclude/asm-x86/desc_defs.h+7 -21 reply
5/12x86: Refactor pack_gate for gate_descinclude/asm-x86/desc.h+8 -30 replies
6/12x86: Refactor pack_descriptorinclude/asm-x86/desc.h+13 -50 replies
7/12x86: Add a static initializer for IDTsinclude/asm-x86/desc_defs.h+9 -00 replies
8/12x86: Use static intializer for IDT entriesarch/x86/kernel/traps.c+1 -10 replies
9/12x86: Add static initiazlier for descriptorsinclude/asm-x86/desc_defs.h+14 -01 reply
10/12x86: Use static initializers for descriptorsarch/x86/kernel/apm_32.c arch/x86/kernel/cpu/common.c include/asm-x86/lguest.h+17 -170 replies
11/12x86: Use macros for getting/setting descriptorsarch/x86/kernel/tls.c arch/x86/kernel/vmi_32.c arch/x86/lguest/boot.c +5 more+33 -330 replies
12/12x86: Use struct fields instead of bitmasksdrivers/lguest/interrupts_and_traps.c+3 -31 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/12] x86: Cleanup idt, gdt/ldt/tss structs

Hi -

This is my first submission to the kernel, so (beware!) please let me know if I can make any improvements on these patches.

I attempted to clean up the x86 structs for 32bit cpus that store IDT/LDT/GDT data by removing the fields labeled "a" and "b" in favor of more descriptive field names. I added some macros and went through the kernel cleaning up the various places where "a" and "b" were used.

I tried building my kernel with my .config and then also did a make allyesconfig build to help ensure I found everything that was using the old structure names. I also tried a few grep patterns. Hopefully I got everyone out.

Thanks,
Joe Damato