Another issue exposed during boot OVMF:

 

SecCoreStartupWithStack(0xFFFCC000, 0x820000)

ASSERT [SecMain] c:\dev\code\edk2\MdePkg\Library\BasePcdLibNull\PcdLib.c(95): ((BOOLEAN)(0==1))

 

I WA it as below fix by overriding PcdLib for SecMain driver:

 

  #

  # SEC Phase modules

  #

  OvmfPkg/Sec/SecMain.inf {

    <LibraryClasses>

      PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf

      NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf

  }

 

Is it another bug in OVMF?

 

Thanks,

Jiaxin