diff options
| author | RARelph <44270374+RARelph@users.noreply.github.com> | 2025-10-31 01:02:27 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-11-04 09:51:50 +0300 |
| commit | b98ccecdecec0bb768e6e5bd4df1694de87ad42f (patch) | |
| tree | bf65937fbfd27d509fca19af61996efdf20169f1 /MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf | |
| parent | 8058a94f60a129476a7955ee839cec96467b9bef (diff) | |
| download | edk2-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.inf | 2 |
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
|
