diff options
Diffstat (limited to 'UefiCpuPkg/Library')
-rw-r--r-- | UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 4d4b52a4c3..61af77d9de 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -162,6 +162,13 @@ MtrrLibIsMtrrSupported ( MSR_IA32_MTRRCAP_REGISTER MtrrCap;
//
+ // MTRR is not supported in TD-Guest.
+ //
+ if (TdIsEnabled ()) {
+ return FALSE;
+ }
+
+ //
// Check CPUID(1).EDX[12] for MTRR capability
//
AsmCpuid (CPUID_VERSION_INFO, NULL, NULL, NULL, &Edx.Uint32);
|