Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: TDX: Protect private mapping related SEAMCALLs with spinlock
Unlike legacy MMU, TDP MMU runs page fault handler concurrently. However, TDX private mapping-related SEAMCALLs cannot run concurrently even they operate on different pages, because they need to acquire exclusive access to a secure EPT table. Protect those SEAMCALLs with spinlock, so they won't run concurrently even under TDP MMU. Signed-off-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
- Loading branch information
Showing
2 changed files
with
108 additions
and
10 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