Skip to content

x86: Cleanup IDT code

Thomas Gleixner lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest44 patches 2 repliesIn review
  2. v244 patches 6 repliesSuperseded
  3. v141 patches 27 repliesSuperseded

Changes in v3 from the cover letter

- Addressed the review comments

- Addressed the fallout reported by kbuild robot

- Picked up acks and reviewed by tags

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/44x86/irq: Remove vector_used_by_percpu_irq()arch/x86/include/asm/irq.h arch/x86/kernel/irq.c arch/x86/kernel/irqinit.c+0 -150 replies
2/44x86/irq: Unexport used_vectorsarch/x86/kernel/traps.c+0 -10 replies
3/44x86/irq: Get rid of the first_system_vector bogisityarch/x86/include/asm/desc.h arch/x86/kernel/apic/apic.c arch/x86/kernel/apic/vector.c +2 more+5 -110 replies
4/44x86/irq: Remove duplicated used_vectors definitionarch/x86/include/asm/desc.h arch/x86/include/asm/irq.h+0 -40 replies
5/44x86/boot: Move EISA setup to a proper placearch/x86/kernel/Makefile arch/x86/kernel/eisa.c arch/x86/kernel/traps.c+19 -130 replies
6/44x86/tracing: Introduce a static key for exception tracingarch/x86/include/asm/trace/common.h arch/x86/include/asm/trace/exceptions.h arch/x86/include/asm/trace/irq_vectors.h +1 more+25 -70 replies
7/44x86/traps: Simplify pagefault tracing logicarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/traps.h +2 more+16 -660 replies
8/44x86/apic: Remove the duplicated tracing version of local_timer_interruptarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/apic.c+1 -200 replies
9/44x86/apic: Use this_cpu_ptr in local_timer_interruptarch/x86/kernel/apic/apic.c+3 -30 replies
10/44x86/irq: Get rid of duplicated trace_x86_platform_ipi() codearch/x86/include/asm/hw_irq.h arch/x86/kernel/irq.c+6 -210 replies
11/44x86/apic: Remove the duplicated tracing versions of interruptsarch/x86/include/asm/hw_irq.h arch/x86/kernel/apic/apic.c+12 -350 replies
12/44x86/irqwork: Get rid of duplicated tracing interrupt codearch/x86/include/asm/hw_irq.h arch/x86/kernel/irq_work.c+3 -150 replies
13/44x86/mce: Remove duplicated tracing interrupt codearch/x86/include/asm/hw_irq.h arch/x86/kernel/cpu/mcheck/mce_amd.c arch/x86/kernel/cpu/mcheck/therm_throt.c +1 more+10 -480 replies
14/44x86/smp: Remove pointless duplicated interrupt codearch/x86/include/asm/hw_irq.h arch/x86/kernel/smp.c+9 -380 replies
15/44x86/smp: Use static key for reschedule interrupt tracingarch/x86/include/asm/hw_irq.h arch/x86/kernel/smp.c+16 -260 replies
16/44x86/idt: Remove tracing idt completelyarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/include/asm/desc.h +4 more+9 -1700 replies
17/44x86/idt: Cleanup the i386 low level entry macrosarch/x86/include/asm/entry_arch.h+5 -90 replies
18/44x86/tracing: Disentangle pagefault and resched IPI tracing keyarch/x86/include/asm/trace/common.h arch/x86/include/asm/trace/exceptions.h arch/x86/include/asm/trace/irq_vectors.h +3 more+59 -220 replies
19/44x86/ipi: Make platform IPI depend on APICarch/x86/include/asm/entry_arch.h arch/x86/kernel/irq.c+7 -70 replies
20/44x86/irq_work: Make it depend on APICarch/x86/include/asm/irq_work.h arch/x86/kernel/irq_work.c+10 -20 replies
21/44x86/tracing: Build tracepoints only when they are usedarch/x86/include/asm/trace/irq_vectors.h+24 -120 replies
22/44x86/idt: Unify gate_struct handling for 32/64bitarch/x86/boot/compressed/eboot.c arch/x86/include/asm/desc.h arch/x86/include/asm/desc_defs.h +2 more+67 -570 replies
23/44x86/percpu: Use static initializer for GDT entryarch/x86/kernel/setup_percpu.c+3 -60 replies
24/44x86/fpu: Use bitfield accessors for desc_structarch/x86/math-emu/fpu_entry.c arch/x86/math-emu/fpu_system.h arch/x86/math-emu/get_address.c+51 -250 replies
25/44x86: Replace access to desc_struct:a/b fieldsarch/x86/include/asm/xen/hypercall.h arch/x86/kernel/tls.c arch/x86/xen/enlighten_pv.c+6 -40 replies
26/44x86/gdt: Use bitfields for initializationarch/x86/entry/vdso/vma.c arch/x86/include/asm/desc.h arch/x86/include/asm/desc_defs.h +1 more+38 -360 replies
27/44x86/ldttss: Cleanup 32bit descriptorsarch/x86/include/asm/desc.h arch/x86/include/asm/desc_defs.h+15 -380 replies
28/44x86/idt: Create file for IDT related codearch/x86/kernel/Makefile arch/x86/kernel/cpu/common.c arch/x86/kernel/idt.c +1 more+27 -160 replies
29/44x86/idt: Move 32bit idt_descr to C codearch/x86/kernel/head_32.S arch/x86/kernel/idt.c+5 -110 replies
30/44x86/idt: Remove unused set_trap_gate()arch/x86/include/asm/desc.h+0 -120 replies
31/44x86/idt: Consolidate IDT invalidationarch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/machine_kexec_32.c +1 more+16 -160 replies
32/44x86/idt: Move early IDT handler setup to IDT codearch/x86/include/asm/desc.h arch/x86/kernel/head64.c arch/x86/kernel/idt.c+22 -50 replies
33/44x86/idt: Move early IDT setup out of 32bit asmarch/x86/include/asm/segment.h arch/x86/kernel/head32.c arch/x86/kernel/head_32.S +1 more+11 -340 replies
34/44x86/idt: Prepare for table based initarch/x86/kernel/idt.c+67 -00 replies
35/44x86/idt: Switch early trap init to IDT tablesarch/x86/kernel/idt.c arch/x86/kernel/setup.c arch/x86/kernel/traps.c+55 -290 replies
36/44x86/idt: Move debug stack init to table basedarch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/traps.c+26 -50 replies
37/44x86/idt: Move ist stack based traps to table initarch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/traps.c+25 -84 replies
38/44x86/idt: Move regular trap init to tablesarch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/traps.c+53 -400 replies
39/44x86/idt: Move APIC gate initialization to tablesarch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/irqinit.c+50 -680 replies
40/44x86/idt: Move interrupt gate initialization to IDT codearch/x86/kernel/idt.c arch/x86/kernel/irqinit.c+18 -180 replies
41/44x86/idt: Remove unused functions/inlinesarch/x86/include/asm/desc.h+0 -360 replies
42/44x86/idt: Deinline setup functionsarch/x86/include/asm/desc.h arch/x86/kernel/idt.c+36 -440 replies
43/44x86/idt: Simplify alloc_intr_gatearch/x86/kernel/cpu/mshyperv.c arch/x86/kernel/idt.c drivers/xen/events/events_base.c+7 -141 reply
44/44x86/idt: Hide set_intr_gate()arch/x86/include/asm/desc.h arch/x86/kernel/idt.c arch/x86/kernel/kvm.c+22 -150 replies

Reviews trailers per patch

7 of 44 patches have a Reviewed-by or Acked-by.

PatchSteven Rostedt (VMware)Boris OstrovskyJuergen GrossPaolo BonziniK. Y. Srinivasan
1/44
2/44
3/44
4/44
5/44
6/44
7/44
8/44R-b
9/44
10/44R-b
11/44R-b
12/44
13/44
14/44
15/44R-b
16/44
17/44
18/44
19/44
20/44
21/44
22/44
23/44
24/44
25/44R-b
26/44
27/44
28/44
29/44
30/44
31/44
32/44
33/44
34/44
35/44
36/44
37/44
38/44
39/44
40/44
41/44
42/44
43/44R-b R-b
44/44A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [patch V3 00/44] x86: Cleanup IDT code

This is the 3rd iteration of the series. The previous version can be found here:

http://lkml.kernel.org/r/[email protected]

The series applies on top of

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/apic

and is available as a git branch from

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/apic

Changes since V2:

- Addressed the review comments

- Addressed the fallout reported by kbuild robot

- Picked up acks and reviewed by tags

Thanks,

tglx

----

 arch/x86/boot/compressed/eboot.c         |    8 
 arch/x86/entry/entry_32.S                |   20 -
 arch/x86/entry/entry_64.S                |   26 --
 arch/x86/entry/vdso/vma.c                |    2 
 arch/x86/include/asm/desc.h              |  248 +++-----------------
 arch/x86/include/asm/desc_defs.h         |  122 +++++-----
 arch/x86/include/asm/entry_arch.h        |   17 -
 arch/x86/include/asm/hw_irq.h            |   20 -
 arch/x86/include/asm/irq.h               |    4 
 arch/x86/include/asm/irq_work.h          |    8 
 arch/x86/include/asm/segment.h           |    4 
 arch/x86/include/asm/trace/common.h      |   16 +
 arch/x86/include/asm/trace/exceptions.h  |    8 
 arch/x86/include/asm/trace/irq_vectors.h |   51 +++-
 arch/x86/include/asm/traps.h             |   10 
 arch/x86/include/asm/xen/hypercall.h     |    6 
 arch/x86/kernel/Makefile                 |    3 
 arch/x86/kernel/apic/apic.c              |   70 +----
 arch/x86/kernel/apic/vector.c            |    2 
 arch/x86/kernel/cpu/common.c             |    9 
 arch/x86/kernel/cpu/mcheck/mce_amd.c     |   16 -
 arch/x86/kernel/cpu/mcheck/therm_throt.c |   20 -
 arch/x86/kernel/cpu/mcheck/threshold.c   |   16 -
 arch/x86/kernel/cpu/mshyperv.c           |    9 
 arch/x86/kernel/eisa.c                   |   18 +
 arch/x86/kernel/head32.c                 |    4 
 arch/x86/kernel/head64.c                 |    6 
 arch/x86/kernel/head_32.S                |   42 ---
 arch/x86/kernel/idt.c                    |  367 +++++++++++++++++++++++++++++++
 arch/x86/kernel/irq.c                    |   40 +--
 arch/x86/kernel/irq_work.c               |   20 -
 arch/x86/kernel/irqinit.c                |  102 --------
 arch/x86/kernel/kvm.c                    |    4 
 arch/x86/kernel/machine_kexec_32.c       |   14 -
 arch/x86/kernel/reboot.c                 |    4 
 arch/x86/kernel/setup.c                  |    4 
 arch/x86/kernel/setup_percpu.c           |    9 
 arch/x86/kernel/smp.c                    |   81 +-----
 arch/x86/kernel/tls.c                    |    2 
 arch/x86/kernel/tracepoint.c             |   57 +---
 arch/x86/kernel/traps.c                  |  107 ---------
 arch/x86/kvm/vmx.c                       |    2 
 arch/x86/math-emu/fpu_entry.c            |   11 
 arch/x86/math-emu/fpu_system.h           |   48 +++-
 arch/x86/math-emu/get_address.c          |   17 -
 arch/x86/mm/fault.c                      |   49 +---
 arch/x86/xen/enlighten_pv.c              |   14 -
 drivers/xen/events/events_base.c         |    6 
 48 files changed, 760 insertions(+), 983 deletions(-)