[edk2-devel] [PATCH] OvmfPkg: Set PciLib for TdxDxe driver

Min Xu min.m.xu at intel.com
Tue Apr 19 02:42:08 UTC 2022


On April 19, 2022 10:08 AM, Yao Jiewen wrote:
> 
> If TdxDxe breaks SEV, should we skip the TdxDxe in SEV path?
> 
> I don't understand why we need use Cfg8.
> 
In TdxDxe driver we need to relocate APs and it requires the TdxMailboxLib. 
The lib chain is that TdxMailbox ->  SynchronizationLib -> TimerLib (which is DxeAcpiTimerLib) -> PciLib (Which was DxePciLibI440FxQ35).
TdxDxe driver was loaded before AmdSevDxe so its lib constructors are called even it is in SEV-ES guest. In other words those lib constructor cannot be skipped in SEV-ES guest.

The analysis of the root cause (why DxePciLibI440FxQ35 trigger the broken) is in below link:
https://edk2.groups.io/g/devel/message/88968

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#89045): https://edk2.groups.io/g/devel/message/89045
Mute This Topic: https://groups.io/mt/90554139/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list