Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: TDX: Support VM-preserving TDX module update
VM-preserving TDX module update splits TDX module loading into two stages. np-seamloader loads a p-seamloader into SEAM mode. And OS can use interfaces provided by p-seamloader to load TDX module into SEAM mode. p-seamloader requires OS to invoke SEAMLDR.UPDATE serially on each CPU. So if p-seamldr is in use, TDX module loading is deferred from during BSP initialization to when all APs are up. Kernel searches for np-seamloader binary at boot time. If found, kernel loads np-seamloader with GETSEC instruction. After APs are up, in tdx_init(), kernel calls p-seamloader's SEAMLDR.UPDATE on all CPUs to load TDX module. Add options to allow admin to override the default locations of related binaries. Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com> Signed-off-by: Chao Gao <chao.gao@intel.com>
- Loading branch information
1 parent
caa6454
commit d58bccc
Showing
1 changed file
with
203 additions
and
57 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