Skip to content

x86/traps: Simplify exception setup

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/traps: Move cpu_init() out of trap_init()xen/arch/x86/setup.c xen/arch/x86/traps.c+2 -21 reply
2/4x86/traps: Move percpu_traps_init() into traps-setup.cxen/arch/x86/acpi/power.c xen/arch/x86/include/asm/system.h xen/arch/x86/include/asm/traps.h +4 more+20 -92 replies
3/4x86/traps: Move trap_init() into traps-setup.cxen/arch/x86/include/asm/msr.h xen/arch/x86/include/asm/system.h xen/arch/x86/include/asm/traps.h +3 more+70 -651 reply
4/4x86/traps: Introduce early_traps_init() and simplify setupxen/arch/x86/include/asm/system.h xen/arch/x86/include/asm/traps.h xen/arch/x86/setup.c +2 more+34 -166 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/4A-b
2/4A-b
3/4A-b
4/4R-b R-b

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/4] x86/traps: Simplify exception setup

This is a small series pulled out of the FRED work.

It is cleanup of our init APIs, moving logic into traps-setup.c, and a simplificiation of early exception setup prior to having exception support.

In the future, it will be traps_init() deciding whether to activate FRED or not, so we'll always be using IDT for early exception handling.

https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1720849629
https://cirrus-ci.com/build/6194032705011712

Andrew Cooper (4):
x86/traps: Move cpu_init() out of trap_init() x86/traps: Move percpu_traps_init() into traps-setup.c x86/traps: Move trap_init() into traps-setup.c x86/traps: Introduce early_traps_init() and simplify setup

 xen/arch/x86/acpi/power.c         |   1 +
 xen/arch/x86/include/asm/msr.h    |   2 -
 xen/arch/x86/include/asm/system.h |   3 -
 xen/arch/x86/include/asm/traps.h  |   6 ++
 xen/arch/x86/setup.c              |   8 ++-
 xen/arch/x86/smpboot.c            |   1 +
 xen/arch/x86/traps-setup.c        | 113 ++++++++++++++++++++++++++++++
 xen/arch/x86/traps.c              |  84 ----------------------
 8 files changed, 126 insertions(+), 92 deletions(-)

base-commit: e7e0d485e993e97b1c816adcfc610e7c7258ce96

Signature · 1 line
2.39.5