Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/cpu: Do logical cpu level TDX module initialization
Logical cpu level initialization requires calling TDH.SYS.LP.INIT on all logical cpus reported by BIOS, otherwise the SEAMCALL of next step initialization will fail. TDH.SYS.LP.INIT can be called concurrently on all cpus. Call TDH.SYS.LP.INIT on all online cpus via on_each_cpu(). To keep it simple, skip the check of whether all cpus reported by BIOS are online and return error early, but let the SEAMCALL of next step to fail. Signed-off-by: Kai Huang <kai.huang@intel.com>
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters