Skip to content

Commit

Permalink
OvmfPkg: enable stack guard for TDVF
Browse files Browse the repository at this point in the history
- Set the PcdCpuStackGuard to be true.
- Guard page is set to be not present by Split2MPageTo4K() in
  TdxStartupLib.
- Stack switch is set by InitializeCpuExceptionHandlersEx() in
  CpuExceptionHandlerLib.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
  • Loading branch information
gaojiaqi7 authored and mxu9 committed Dec 9, 2021
1 parent 4bd322d commit 8772f3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OvmfPkg/OvmfPkgX64.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@
#gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
gUefiOvmfPkgTokenSpaceGuid.PcdTdxSetNxForStack|TRUE
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE

# Set memory encryption mask
gUefiOvmfPkgTokenSpaceGuid.PcdTdxPteMemoryEncryptionAddressOrMask|0x0
Expand Down

0 comments on commit 8772f3f

Please # to comment.