On 24.02.2025 17:05, Andrew Cooper wrote:
> Now that bsp_idt[] is constructed at build time, we do not need to manually
> initialise it in init_idt_traps() and trap_init().
> 
> The only edit needed to the bsp_idt[] is to switch from the early #PF handler
> to the normal one, and this can be done using _update_gate_addr_lower() as we
> do on the kexec path for NMI and #MC.
> 
> This in turn allows us to drop set_{intr,swint}_gate() and the underlying
> infrastructure.  It also lets us drop autogen_entrypoints[] and that
> underlying infrastructure.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Reviewed-by: Jan Beulich <jbeul...@suse.com>

The switching around of the #PF handler is of course getting in the way of
moving bsp_idt[] into .rodata.

Jan


Reply via email to