Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 856bdc8eec0fd450ffb582808ad9649a5d02b480
      
https://github.com/tianocore/edk2/commit/856bdc8eec0fd450ffb582808ad9649a5d02b480
  Author: Tom Lendacky <thomas.lenda...@amd.com>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

  Changed paths:
    M OvmfPkg/Library/CcExitLib/CcExitVcHandler.c

  Log Message:
  -----------
  OvmfPkg/CcExitLib: Use the proper register when filtering MSRs

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.lenda...@amd.com>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to