[edk2-devel] [PATCH V4 05/31] OvmfPkg: Extend VmgExitLib to handle #VE exception

Min Xu min.m.xu at intel.com
Thu Jan 20 06:34:28 UTC 2022


Hi
> > The base VmgExitLib library provides a default limited interface to
> > handle #VE exception. To provide full support, the OVMF version of
> > VmgExitLib is extended to provide full support of #VE handler.
> >
> > PcdIgnoreVeHalt is created in OvmfPkg.dec to ignore the VE halt.
> 
> Why this is useful?
This Pcd is deprecated. It will be removed in the next version.
> 
> > +  X64/TdVmcallCpuid.nasm
> 
> Hmm, why not simply call the functions added by patch #2?
> 
TdVmcall in patch #2 assumes the returned value is in r11 (if there is returned data). But from [GHCI] spec Table 3-17, TDVMCALL_CPUID returns the values in R12/R13/R14/R15. So there has to be a new TdVmcallCpuid.nasm.
[GHCI] https://www.intel.com/content/dam/develop/external/us/en/documents/intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#85860): https://edk2.groups.io/g/devel/message/85860
Mute This Topic: https://groups.io/mt/87696561/1813853
Mute #ve:https://edk2.groups.io/g/devel/mutehashtag/ve
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