On 20.03.2025 21:17, Andrew Cooper wrote:
> Something I overlooked when last cleaning up exception handling is that a TSS
> is not necessary if IST isn't configured, and IST isn't necessary until we're
> running guest code.
> 
> Introduce early_traps_init(), and rearrange the existing logic between this
> and traps_init() later on boot, to allow defering TSS and IST setup.
> 
> In early_traps_init(), load the IDT and invalidate TR/LDTR; this sufficient
> system-table setup to make exception handling work.  The setup of the BSPs
> per-cpu variables stay early too; they're used on certain error paths.
> 
> Move load_system_tables() later into traps_init().  Note that it already
> contains enable_each_ist(), so the call is simply dropped.
> 
> This removes some complexity prior to having exception support, and lays the
> groundwork to not even allocate a TSS when using FRED.
> 
> No practical change.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

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



Reply via email to