From b98ccecdecec0bb768e6e5bd4df1694de87ad42f Mon Sep 17 00:00:00 2001 From: RARelph <44270374+RARelph@users.noreply.github.com> Date: Thu, 30 Oct 2025 17:02:27 -0500 Subject: 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 --- MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf') 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 -- cgit v1.2.3