Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: a7e070808c7143974621f9bbd17968e8ca857f38
      
https://github.com/tianocore/edk2/commit/a7e070808c7143974621f9bbd17968e8ca857f38
  Author: Liu, Zhiguang <zhiguang....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c

  Log Message:
  -----------
  UefiCpuPkg:Add RegisterExceptionHandler in PeiCpuExceptionHandlerLib

The PEI instance of the CpuExceptionHandlerLib didn't implement the
RegisterCpuInterruptHandler() API. This patch adds the missing API.

Signed-off-by: Zhiguang Liu <zhiguang....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: b8e54e15de1b5bfc5065e3fda8ded4664c819850
      
https://github.com/tianocore/edk2/commit/b8e54e15de1b5bfc5065e3fda8ded4664c819850
  Author: Tan, Dun <dun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableParse.c

  Log Message:
  -----------
  UefiCpuPkg/CpuPageTableLib:Support PAE paging for PageTableParse

Support PAE paging for PageTableParse API in CpuPageTableLib.

Signed-off-by: Dun Tan <dun....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: beabde5875a2b2484149c26da4f0d13b0acc47e4
      
https://github.com/tianocore/edk2/commit/beabde5875a2b2484149c26da4f0d13b0acc47e4
  Author: Tan, Dun <dun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTestCommon.c
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerLibUnitTest.inf
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerUnitTest.c
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/X64/ArchExceptionHandlerTest.c
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/X64/ArchExceptionHandlerTestAsm.nasm

  Log Message:
  -----------
  UefiCpuPkg: Add Unit tests for DxeCpuExceptionHandlerLib

Add target based unit tests for the DxeCpuExceptionHandlerLib.
A DXE driver is created to test DxeCpuExceptionHandlerLib.

Four test cases are created in this Unit Test module:
a.Test if exception handler can be registered/unregistered
for no error code exception.In the test case, only no error
code exception is triggered and tested by INTn instruction.

b.Test if exception handler can be registered/unregistered
for GP and PF. In the test case, GP exception is triggered
and tested by setting CR4_RESERVED_BIT to 1. PF exception
is triggered by writting to not-present or RO address.

c.Test if CpuContext is consistent before and after exception.
In this test case:
1.Set Cpu register to mExpectedContextInHandler before
exception. 2.Trigger exception specified by ExceptionType.
3.Store SystemContext in mActualContextInHandler and set
SystemContext to mExpectedContextAfterException in handler.
4.After return from exception, store Cpu registers in
mActualContextAfterException.
The expectation is:
1.Register values in mActualContextInHandler are the same
with register values in mExpectedContextInHandler.
2.Register values in mActualContextAfterException are the
same with register values mActualContextAfterException.

d.Test if stack overflow can be captured by CpuStackGuard
in both Bsp and AP. In this test case, stack overflow is
triggered by a funtion which calls itself continuously.
This test case triggers stack overflow in both BSP and AP.
All AP use same Idt with Bsp. The expectation is:
1. PF exception is triggered (leading to a DF if sepereated
stack is not prepared for PF) when Rsp<=StackBase+SIZE_4KB
since [StackBase, StackBase + SIZE_4KB] is marked as not
present in page table when PcdCpuStackGuard is TRUE.
2. Stack for PF/DF exception handler in both Bsp and AP is
succussfully switched by InitializeSeparateExceptionStacks.

Signed-off-by: Dun Tan <dun....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: 055eaacc34fbbec2da78f4619178070bc68a343c
      
https://github.com/tianocore/edk2/commit/055eaacc34fbbec2da78f4619178070bc68a343c
  Author: Tan, Dun <dun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/Ia32/ArchExceptionHandlerTest.c
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/Ia32/ArchExceptionHandlerTestAsm.nasm
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerLibUnitTest.inf
    A 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerUnitTest.c

  Log Message:
  -----------
  UefiCpuPkg: Add Unit tests for PeiCpuExceptionHandlerLib

The previous change adds unit test for DxeCpuExeptionHandlerLib
in 64bit mode. This change create a PEIM to add unit test for
PeiCpuExceptionHandlerLib based on previous change.It can run
in both 32bit and 64bit modes.

Signed-off-by: Dun Tan <dun....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: 012e4246017d6c949a2016c51e1a72446df6bd26
      
https://github.com/tianocore/edk2/commit/012e4246017d6c949a2016c51e1a72446df6bd26
  Author: Tan, Dun <dun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M UefiCpuPkg/UefiCpuPkg.dsc

  Log Message:
  -----------
  UefiCpuPkg: Add Pei/DxeCpuExceptionHandlerLibUnitTest in dsc

Add Pei/DxeCpuExceptionHandlerLibUnitTest module in UefiCpuPkg.dsc

Signed-off-by: Dun Tan <dun....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: 6f1bb567aaaab8eb26db5188355d5a2587e99369
      
https://github.com/tianocore/edk2/commit/6f1bb567aaaab8eb26db5188355d5a2587e99369
  Author: Tan, Dun <dun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M UefiCpuPkg/UefiCpuPkg.ci.yaml

  Log Message:
  -----------
  UefiCpuPkg: Add R8/R9 etc in EccCheck ExceptionList

Add GENERAL_REGISTER.R8/R9 etc in EccCheck ExceptionList
of UefiCpuPkg/UefiCpuPkg.ci.yaml to pass CI EccCheck.R8/R9
in structure GENERAL_REGISTER of CpuExceptionHandlerTest.h
lead to EccCheck failure since no lower case characters in
R8/R9/R10 etc.

Signed-off-by: Dun Tan <dun....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


  Commit: 9d6915ca91519271a79bc6190a31f0af89e339b2
      
https://github.com/tianocore/edk2/commit/9d6915ca91519271a79bc6190a31f0af89e339b2
  Author: Jason Lou <yun....@intel.com>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiPeiUnitTest.inf
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EdkiiPeiMpServices2PpiUnitTest.c
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolDxeUnitTest.inf
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServiceProtocolUnitTest.c
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTestCommom.c
    A 
UefiCpuPkg/Test/UnitTest/EfiMpServicesPpiProtocol/EfiMpServicesUnitTestCommom.h
    M UefiCpuPkg/UefiCpuPkg.dsc

  Log Message:
  -----------
  UefiCpuPkg/Test: Add unit tests for MP service PPI and Protocol

The code changes add unit tests based on current UnitTestFramework.
EdkiiPeiMpServices2PpiPeiUnitTest PEI module is used to test
EdkiiPeiMpServices2Ppi and EfiMpServiceProtocolDxeUnitTest DXE driver is
used to test EfiMpServiceProtocol.

Signed-off-by: Jason Lou <yun....@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Cc: Laszlo Ersek <ler...@redhat.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>


Compare: https://github.com/tianocore/edk2/compare/d618fe05bf93...9d6915ca9151


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

Reply via email to