summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/VarCheckLib
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2025-04-25 12:49:52 -0500
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-04-26 09:14:28 +0000
commit856bdc8eec0fd450ffb582808ad9649a5d02b480 (patch)
tree70fe4e7c464849d50e872e2d43e840f58d68a6af /MdeModulePkg/Library/VarCheckLib
parent956ef6cd8b233a4137c19acc354f479854378bf5 (diff)
downloadedk2-master.tar.gz
edk2-master.tar.bz2
edk2-master.zip
OvmfPkg/CcExitLib: Use the proper register when filtering MSRsHEADmaster
The MsrExit() routine uses an incorrect register to check for the CAA MSR. Instead of checking RCX, the input register for RDMSR/WRMSR that holds the MSR value, it is checking RAX, which results in failure to detect the CAA MSR request. The check should only be checking the lower 32-bits of the register (ECX), too. Change the check in MsrExit() to check the MSR value contained in ECX. Fixes: 47001ab98914 ("Ovmfpkg/CcExitLib: Provide SVSM discovery support") Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Diffstat (limited to 'MdeModulePkg/Library/VarCheckLib')
0 files changed, 0 insertions, 0 deletions