coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 42 forks source link

stage2: add TD Partitioning support to boot_stage2 #408

Closed peterfang closed 4 months ago

peterfang commented 4 months ago

This is the first half of the TDX enabling work in stage2. It focuses on boot_stage2.rs, before reaching stage2_main(). The main goal of this patchset is to lay the groundwork for TD SMP support. TD SMP boot flow is different from traditional x86 SMP in that all TD vCPUs start execution in 32-bit non-paged mode concurrently and the INIT/SIPI protocol is not used.