summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
diff options
context:
space:
mode:
authorRARelph <44270374+RARelph@users.noreply.github.com>2025-10-31 01:02:27 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-04 09:51:50 +0300
commitb98ccecdecec0bb768e6e5bd4df1694de87ad42f (patch)
treebf65937fbfd27d509fca19af61996efdf20169f1 /MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
parent8058a94f60a129476a7955ee839cec96467b9bef (diff)
downloadedk2-b98ccecdecec0bb768e6e5bd4df1694de87ad42f.tar.xz
MdePkg: Add code to detect running as an SEV guest
Similar to Intel's Tdx, we need a mechanism to detect running as an AMD SEV guest that will work in all phases everywhere. This will be immediately used to prevent usage of MTRRs with SEV guests. Signed-off-by: Richard Relph <richard.relph@amd.com>
Diffstat (limited to 'MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf')
-rw-r--r--MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
index 190e3b6e03..776c7ccb67 100644
--- a/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
+++ b/MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf
@@ -130,6 +130,7 @@
X86SpeculationBarrier.c
X86UnitTestHost.c
IntelTdxNull.c
+ AmdSevNull.c
[Sources.X64]
X64/LongJump.nasm
@@ -170,6 +171,7 @@
X64/RdRand.nasm
X86UnitTestHost.c
IntelTdxNull.c
+ AmdSevNull.c
[Sources.EBC]
Ebc/CpuBreakpoint.c