On Tue, Oct 26, 2021 at 05:06:21AM +0000, Xu, Min M wrote: > On October 12, 2021 6:27 PM, Gerd Hoffmann wrote: > > > + if (ExceptionType == VE_EXCEPTION) { > > > + EFI_STATUS Status; > > > + // > > > + // #VE needs to be handled immediately upon enabling exception > > > handling > > > + // and therefore can't use the RegisterCpuInterruptHandler() > > > interface. > > > > Can please you explain in more detail why this is the case? > > > VE Exception may happen before a component registers exception. > > So it has to be implemented inside the exception lib.
Well, no, you can also change the code to avoid triggering an exception. Adding a new lib for the exception means the lib must be added into each and every *.dsc file (either the tdx impl or the null variant), not only in the tianocore core itself but also all projects depending on tianocore. So IMHO it is worth checking out how much effort it would be to avoid early (before component registration) exceptions. Which early exception do actually happen? take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82671): https://edk2.groups.io/g/devel/message/82671 Mute This Topic: https://groups.io/mt/86085742/21656 Mute #ve:https://edk2.groups.io/g/devel/mutehashtag/ve Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-