Re: [edk2-devel] [PATCH v2] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-26 Thread Dong, Eric
Reviewed-by: Eric Dong > -Original Message- > From: Ni, Ray > Sent: Friday, July 24, 2020 2:42 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Shao, Ming > ; Dong, Eric ; Laszlo Ersek > ; Sean Brogan ; Bret > Barkelew ; Yao, Jiewen > > Subject: [PATCH v2]

Re: [edk2-devel] [PATCH v2] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-24 Thread Michael D Kinney
Reviewed-by: Michael D Kinney > -Original Message- > From: Ni, Ray > Sent: Thursday, July 23, 2020 11:42 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; > Shao, Ming ; Dong, Eric > ; Laszlo Ersek > ; Sean Brogan > ; Bret Barkelew > ; Yao, Jiewen > > Subject: [PATCH v2]

Re: [edk2-devel] [PATCH v2] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-24 Thread Laszlo Ersek
On 07/24/20 08:41, Ray Ni wrote: > Add host based unit tests for the MtrrLib services. > The BaseLib services AsmCpuid(), AsmReadMsr64(), and > AsmWriteMsr64() are hooked and provide simple emulation > of the CPUID leafs and MSRs required by the MtrrLib to > run as a host based unit test. > >

[edk2-devel] [PATCH v2] UefiCpuPkg/MtrrLib/UnitTest: Add host based unit test

2020-07-24 Thread Ni, Ray
Add host based unit tests for the MtrrLib services. The BaseLib services AsmCpuid(), AsmReadMsr64(), and AsmWriteMsr64() are hooked and provide simple emulation of the CPUID leafs and MSRs required by the MtrrLib to run as a host based unit test. Test cases are developed for each of the API. For