audk/UefiCpuPkg/Library
Min M Xu 3a3b12cbda UefiCpuPkg/MtrrLib: MtrrLibIsMtrrSupported always return FALSE in TD-Guest
Currently, TDX exposes MTRR CPUID bit to TDX VM. So based on the CPUID,
the guest software components (OVMF/TDVF and guest kernel) will access
MTRR MSRs. One problem for guest to use of MTRR is the change of MTRR
setting needs to set CR0.CD=1, which will case #VE for TDX.

For Linux kernel, there is a mechanism called SW defined MTRR introduced
by the patch https://lore.kernel.org/all/20230502120931.
20719-4-jgross@suse.com/. If this is integrated for TDX guest, then Linux
kernel will not access any MTRR MSRs.

So we update MtrrLibIsMtrrSupported() to always return false for TD-Guest,
then TDVF will not access MTRR MSRs at all.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Binbin Wu <binbin.wu@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
2024-09-20 02:24:06 +00:00
..
AmdSvsmLibNull UefiCpuPkg/AmdSvsmLib: Create the AmdSvsmLib library to support an SVSM 2024-04-17 18:30:03 +00:00
BaseRiscV64CpuExceptionHandlerLib UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
BaseRiscV64CpuTimerLib UefiCpuPkg: RISC-V: TimerLib: Fix delay function to use 64-bit 2023-06-15 05:32:51 +00:00
BaseRiscVMmuLib UefiCpuPkg: RISC-V: MMU: Support Svpbmt extension 2024-04-08 05:43:59 +00:00
BaseXApicLib UefiCpuPkg/BaseXApic[X2]ApicLib: Implements AMD extended cpu topology 2024-01-31 13:08:29 +00:00
BaseXApicX2ApicLib UefiCpuPkg/BaseXApic[X2]ApicLib: Implements AMD extended cpu topology 2024-01-31 13:08:29 +00:00
CcExitLibNull
CpuCacheInfoLib UefiCpuPkg: Correct the count of different type of Cache. 2024-06-21 02:44:34 +00:00
CpuCommonFeaturesLib UefiCpuPkg/Library: Cleanup debug message in LmceSupport 2024-04-30 07:15:46 +00:00
CpuExceptionHandlerLib UefiCpuPkg: Using the new name of LoongArch CSR 0x20 register 2024-08-30 19:54:01 +00:00
CpuMmuLib UefiCpuPkg: Add CpuMmuLib to UefiCpuPkg 2024-04-16 06:00:32 +00:00
CpuPageTableLib UefiCpuPkg: CpuPageTableLibTestHost: Disable Random Test Suite 2024-08-27 16:26:51 +00:00
CpuTimerLib UefiCpuPkg: Add LoongArch64 CPU Timer instance 2024-04-16 06:00:32 +00:00
MicrocodeLib
MmSaveStateLib UefiCpuPkg/Library: Add MM_STANDALONE type for MmSaveStateLib 2024-06-28 05:47:13 +00:00
MmUnblockMemoryLib UefiCpuPkg: Add MM Unblock Page Library 2024-08-28 15:25:27 +00:00
MpInitLib UefiCpuPkg: Using the new name of LoongArch CSR 0x20 register 2024-08-30 19:54:01 +00:00
MpInitLibUp UefiCpuPkg: Check lower 24 bits of ProcessorNumber 2024-01-09 16:31:57 +00:00
MtrrLib UefiCpuPkg/MtrrLib: MtrrLibIsMtrrSupported always return FALSE in TD-Guest 2024-09-20 02:24:06 +00:00
PlatformSecLibNull
RegisterCpuFeaturesLib UefiCpuPkg/Library: Support to get processor extended info 2024-05-08 08:17:31 +00:00
SecPeiDxeTimerLibUefiCpu
SmmCpuFeaturesLib UefiCpuPkg/AmdSmmCpuFeaturesLib: Skip SMBASE configuration 2024-09-17 15:32:04 +00:00
SmmCpuPlatformHookLibNull UefiCpuPkg/Library: Add MM_STANDALONE type for SmmCpuPlatformHookLib 2024-06-28 05:47:13 +00:00
SmmCpuRendezvousLib
SmmCpuSyncLib UefiCpuPkg/SmmCpuSyncLib: Add MM_STANDALONE tag. 2024-06-17 08:01:31 +00:00
SmmRelocationLib UefiCpuPkg/SmmRelocationLib: Add library instance for AMD 2024-05-08 01:53:58 +00:00