All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/22] x86: FRED support, part 1 (stacks and exceptions)
@ 2025-08-08 20:22 Andrew Cooper
  2025-08-08 20:22 ` [PATCH 01/22] x86/msr: Rename MSR_INTERRUPT_SSP_TABLE to MSR_ISST Andrew Cooper
                   ` (22 more replies)
  0 siblings, 23 replies; 120+ messages in thread
From: Andrew Cooper @ 2025-08-08 20:22 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper

Patches 1-12 are cleanup and rearrangement in order to fit FRED in more
nicely.

Patches 13-22 are the start of FRED support, setting up the stacks and
exception handling.

By the end of this series, Xen can run a PVH dom0 (if NMIs aren't in use -
VT-x has a really nasty corner case here), or can get to the point of
launching a PV dom0.  Running a PV dom0 is going to take a similar quantity of
work.

All deveopment work has been done with Intel SIMICS.  I don't yet have real
hardware to test on.

The Gitlab CI AlderLake box, sporting both Shadow Stacks and S3 has been
working overtime checking that S3 works on every relevant patch boundary.

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/1974989391


Andrew Cooper (22):
  x86/msr: Rename MSR_INTERRUPT_SSP_TABLE to MSR_ISST
  x86/msr: Rename wrmsr_ns() to wrmsrns(), and take 64bit value
  x86/traps: Drop incorrect BUILD_BUG_ON() and comment in load_system_tables()
  x86/idt: Minor improvements to _update_gate_addr_lower()
  x86/traps: Rename early_traps_init() to bsp_early_traps_init()
  x86/traps: Introduce bsp_traps_reinit()
  x86/spec-ctrl: Rework init_shadow_spec_ctrl_state() to take an info pointer
  x86/traps: Introduce ap_early_traps_init() and set up exception handling earlier
  x86/traps: Move load_system_tables() into traps-setup.c
  x86/traps: Move subarch_percpu_traps_init() into traps-setup.c
  x86/traps: Fold x86_64/traps.c into traps.c
  x86/traps: Unexport show_code() and show_stack_overflow()
  x86: FRED enumerations
  x86/traps: Extend struct cpu_user_regs/cpu_info with FRED fields
  x86/traps: Introduce opt_fred
  x86/boot: Adjust CR4 handling around ap_early_traps_init()
  x86/S3: Switch to using RSTORSSP to recover SSP on resume
  x86/traps: Set MSR_PL0_SSP in load_system_tables()
  x86/boot: Use RSTORSSP to establish SSP
  x86/traps: Alter switch_stack_and_jump() for FRED mode
  x86/traps: Introduce FRED entrypoints
  x86/traps: Enable FRED when requested

 docs/misc/xen-command-line.pandoc           |  10 +
 xen/arch/x86/Kconfig                        |   4 +
 xen/arch/x86/acpi/wakeup_prot.S             |  57 +--
 xen/arch/x86/boot/x86_64.S                  |  53 ++-
 xen/arch/x86/cpu/common.c                   | 120 ------
 xen/arch/x86/include/asm/asm-defns.h        |   9 +
 xen/arch/x86/include/asm/asm_defns.h        |  65 +++
 xen/arch/x86/include/asm/cpu-user-regs.h    |  71 +++-
 xen/arch/x86/include/asm/cpufeature.h       |   3 +
 xen/arch/x86/include/asm/current.h          |  14 +-
 xen/arch/x86/include/asm/idt.h              |  13 +-
 xen/arch/x86/include/asm/msr-index.h        |  13 +-
 xen/arch/x86/include/asm/msr.h              |  12 +-
 xen/arch/x86/include/asm/processor.h        |   2 -
 xen/arch/x86/include/asm/prot-key.h         |   4 +-
 xen/arch/x86/include/asm/spec_ctrl.h        |   4 +-
 xen/arch/x86/include/asm/system.h           |   3 -
 xen/arch/x86/include/asm/traps.h            |   7 +-
 xen/arch/x86/include/asm/x86-defns.h        |   1 +
 xen/arch/x86/msr.c                          |   4 +-
 xen/arch/x86/setup.c                        |  37 +-
 xen/arch/x86/smpboot.c                      |  17 +-
 xen/arch/x86/spec_ctrl.c                    |   2 +-
 xen/arch/x86/traps-setup.c                  | 358 +++++++++++++++-
 xen/arch/x86/traps.c                        | 448 +++++++++++++++++++-
 xen/arch/x86/x86_64/Makefile                |   2 +-
 xen/arch/x86/x86_64/entry-fred.S            |  35 ++
 xen/arch/x86/x86_64/traps.c                 | 414 ------------------
 xen/include/public/arch-x86/cpufeatureset.h |   3 +
 xen/include/xen/macros.h                    |   2 +
 30 files changed, 1142 insertions(+), 645 deletions(-)
 create mode 100644 xen/arch/x86/x86_64/entry-fred.S
 delete mode 100644 xen/arch/x86/x86_64/traps.c

-- 
2.39.5



^ permalink raw reply	[flat|nested] 120+ messages in thread

end of thread, other threads:[~2025-08-25  9:19 UTC | newest]

Thread overview: 120+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-08 20:22 [PATCH 00/22] x86: FRED support, part 1 (stacks and exceptions) Andrew Cooper
2025-08-08 20:22 ` [PATCH 01/22] x86/msr: Rename MSR_INTERRUPT_SSP_TABLE to MSR_ISST Andrew Cooper
2025-08-12  8:06   ` Jan Beulich
2025-08-13  9:02     ` Andrew Cooper
2025-08-08 20:22 ` [PATCH 02/22] x86/msr: Rename wrmsr_ns() to wrmsrns(), and take 64bit value Andrew Cooper
2025-08-11  6:36   ` Andrew Cooper
2025-08-12  8:08     ` Jan Beulich
2025-08-08 20:22 ` [PATCH 03/22] x86/traps: Drop incorrect BUILD_BUG_ON() and comment in load_system_tables() Andrew Cooper
2025-08-12  8:11   ` Jan Beulich
2025-08-13  9:40     ` Andrew Cooper
2025-08-14  8:50       ` Jan Beulich
2025-08-08 20:22 ` [PATCH 04/22] x86/idt: Minor improvements to _update_gate_addr_lower() Andrew Cooper
2025-08-12  8:16   ` Jan Beulich
2025-08-13  9:48     ` Andrew Cooper
2025-08-08 20:22 ` [PATCH 05/22] x86/traps: Rename early_traps_init() to bsp_early_traps_init() Andrew Cooper
2025-08-12  8:17   ` Jan Beulich
2025-08-08 20:22 ` [PATCH 06/22] x86/traps: Introduce bsp_traps_reinit() Andrew Cooper
2025-08-12  8:19   ` Jan Beulich
2025-08-13  9:51     ` Andrew Cooper
2025-08-08 20:22 ` [PATCH 07/22] x86/spec-ctrl: Rework init_shadow_spec_ctrl_state() to take an info pointer Andrew Cooper
2025-08-12  8:27   ` Jan Beulich
2025-08-13 10:35     ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 08/22] x86/traps: Introduce ap_early_traps_init() and set up exception handling earlier Andrew Cooper
2025-08-12  8:41   ` Jan Beulich
2025-08-13 11:13     ` Andrew Cooper
2025-08-14  8:53       ` Jan Beulich
2025-08-14 18:07   ` [PATCH v1.1 08/22] x86/traps: Introduce percpu_early_traps_init() " Andrew Cooper
2025-08-15  9:24     ` Jan Beulich
2025-08-08 20:23 ` [PATCH 09/22] x86/traps: Move load_system_tables() into traps-setup.c Andrew Cooper
2025-08-12  9:19   ` Jan Beulich
2025-08-13 11:25     ` Andrew Cooper
2025-08-14  8:55       ` Jan Beulich
2025-08-14 18:09         ` Andrew Cooper
2025-08-15  8:22           ` Jan Beulich
2025-08-15  8:28             ` Andrew Cooper
2025-08-15  8:32               ` Jan Beulich
2025-08-12  9:43   ` Nicola Vetrini
2025-08-13 11:36     ` Andrew Cooper
2025-08-14  7:26       ` Jan Beulich
2025-08-14 18:20         ` Andrew Cooper
2025-08-15  8:30           ` Jan Beulich
2025-08-15  8:40             ` Nicola Vetrini
2025-08-15  8:49               ` Jan Beulich
2025-08-08 20:23 ` [PATCH 10/22] x86/traps: Move subarch_percpu_traps_init() " Andrew Cooper
2025-08-11  8:17   ` Andrew Cooper
2025-08-12  9:52     ` Jan Beulich
2025-08-13 11:53       ` Andrew Cooper
2025-08-14  8:58         ` Jan Beulich
2025-08-14 10:17           ` Andrew Cooper
2025-08-14 10:52             ` Jan Beulich
2025-08-14 11:02               ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 11/22] x86/traps: Fold x86_64/traps.c into traps.c Andrew Cooper
2025-08-12  9:53   ` Jan Beulich
2025-08-08 20:23 ` [PATCH 12/22] x86/traps: Unexport show_code() and show_stack_overflow() Andrew Cooper
2025-08-12  9:54   ` Jan Beulich
2025-08-08 20:23 ` [PATCH 13/22] x86: FRED enumerations Andrew Cooper
2025-08-13 12:28   ` Andrew Cooper
2025-08-14  7:30     ` Jan Beulich
2025-08-14 11:20   ` Jan Beulich
2025-08-14 11:42     ` Andrew Cooper
2025-08-14 11:44       ` Jan Beulich
2025-08-14 11:47         ` Andrew Cooper
2025-08-14 19:37           ` Nicola Vetrini
2025-08-14 19:44             ` Andrew Cooper
2025-08-14 21:27               ` Nicola Vetrini
2025-08-14 20:18             ` Nicola Vetrini
2025-08-14 13:19     ` Jan Beulich
2025-08-14 18:45       ` Andrew Cooper
2025-08-15  8:34         ` Jan Beulich
2025-08-21 21:23     ` Andrew Cooper
2025-08-18  9:02   ` Jan Beulich
2025-08-08 20:23 ` [PATCH 14/22] x86/traps: Extend struct cpu_user_regs/cpu_info with FRED fields Andrew Cooper
2025-08-14 13:12   ` Jan Beulich
2025-08-14 15:07     ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 15/22] x86/traps: Introduce opt_fred Andrew Cooper
2025-08-14 13:30   ` Jan Beulich
2025-08-14 19:16     ` Andrew Cooper
2025-08-15  8:37       ` Jan Beulich
2025-08-21 21:52         ` Andrew Cooper
2025-08-25  9:08           ` Jan Beulich
2025-08-08 20:23 ` [PATCH 16/22] x86/boot: Adjust CR4 handling around ap_early_traps_init() Andrew Cooper
2025-08-14 14:47   ` Jan Beulich
2025-08-14 14:54     ` Andrew Cooper
2025-08-14 14:56       ` Jan Beulich
2025-08-14 19:22         ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 17/22] x86/S3: Switch to using RSTORSSP to recover SSP on resume Andrew Cooper
2025-08-14 14:54   ` Jan Beulich
2025-08-08 20:23 ` [PATCH 18/22] x86/traps: Set MSR_PL0_SSP in load_system_tables() Andrew Cooper
2025-08-14 15:00   ` Jan Beulich
2025-08-14 19:37     ` Andrew Cooper
2025-08-15  8:52       ` Jan Beulich
2025-08-15 13:49         ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 19/22] x86/boot: Use RSTORSSP to establish SSP Andrew Cooper
2025-08-14 15:11   ` Jan Beulich
2025-08-14 20:09     ` Andrew Cooper
2025-08-15  9:03       ` Jan Beulich
2025-08-21 22:09         ` Andrew Cooper
2025-08-25  9:12           ` Jan Beulich
2025-08-08 20:23 ` [PATCH 20/22] x86/traps: Alter switch_stack_and_jump() for FRED mode Andrew Cooper
2025-08-14 15:35   ` Jan Beulich
2025-08-14 20:55     ` Andrew Cooper
2025-08-15  9:10       ` Jan Beulich
2025-08-21 22:56         ` Andrew Cooper
2025-08-25  9:19           ` Jan Beulich
2025-08-08 20:23 ` [PATCH 21/22] x86/traps: Introduce FRED entrypoints Andrew Cooper
2025-08-11 11:38   ` Andrew Cooper
2025-08-14 15:57   ` Jan Beulich
2025-08-14 20:40     ` Andrew Cooper
2025-08-15  9:22       ` Jan Beulich
2025-08-18  8:59       ` Jan Beulich
2025-08-18 10:03   ` Jan Beulich
2025-08-18 10:09     ` Andrew Cooper
2025-08-08 20:23 ` [PATCH 22/22] x86/traps: Enable FRED when requested Andrew Cooper
2025-08-18  9:35   ` Jan Beulich
2025-08-18  9:47     ` Andrew Cooper
2025-08-18  9:53       ` Jan Beulich
2025-08-08 23:49 ` [PATCH 23/22] x86/vmx: Adjust NMI handling for FRED Andrew Cooper
2025-08-18 10:02   ` Jan Beulich
2025-08-18 17:18     ` Andrew Cooper
2025-08-19  6:31       ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.