Min: I suggest to add it into OvmfPkg/Library/PlatformInitLib/IntelTdx.c as the internal implementation.
Thanks Liming > -----邮件原件----- > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Min Xu > 发送时间: 2022年3月15日 15:12 > 收件人: devel@edk2.groups.io; Gao, Liming <gaolim...@byosoft.com.cn> > 抄送: 'Brijesh Singh' <brijesh.si...@amd.com>; Dong, Eric > <eric.d...@intel.com>; Aktas, Erdem <erdemak...@google.com>; Wu, Hao > A <hao.a...@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; 'James > Bottomley' <j...@linux.ibm.com>; Yao, Jiewen <jiewen....@intel.com>; > Kinney, Michael D <michael.d.kin...@intel.com>; Ni, Ray <ray...@intel.com>; > Kumar, Rahul1 <rahul1.ku...@intel.com>; 'Tom Lendacky' > <thomas.lenda...@amd.com>; Liu, Zhiguang <zhiguang....@intel.com>; > 'Gerd Hoffmann' <kra...@redhat.com> > 主题: Re: [edk2-devel] [PATCH V8 00/47] Enable Intel TDX in OvmfPkg > (Config-A) > > On March 15, 2022 11:55 AM, Gao Liming wrote: > > Min: > > As Jiewen mentions, EFI_RESOURCE_MEMORY_UNACCEPTED will be in > next > > public spec. So, it can't be added now. > > > > I suggest to add edk2 definition for this type in MdeModulePkg first, such > as > > EDKII_RESOURCE_MEMORY_UNACCEPTED. It can be removed after new > spec is > > published. > > > Thanks for the comments. In the patch > EFI_RESOURCE_MEMORY_UNACCEPTED was defined in > MdePkg/Include/Pi/PiHob.h. > I check the MdeModulePkg/Include but don't find some proper header files > for this definition. > > Or can we define EFI_RESOURCE_MEMORY_UNACCEPTED in > OvmfPkg/Library/PlatformInitLib/IntelTdx.c? > In current stage all the unaccepted memory passed from host VMM are all > accepted in OvmfPkg/Library/PlatformInitLib/IntelTdx.c. After that these > unaccepted memory hob are transferred to private memory hob. So currently > EFI_RESOURCE_MEMORY_UNACCEPTED is only seen in above IntelTdx.c. > > [TDVF] Sec 7.3.1 defines the unaccepted memory resource HOB for DXE > phase. But this is for the lazy-accept feature which will be implemented in > the > future. > > What's your suggestion? > > [TDVF] > https://www.intel.com/content/dam/develop/external/us/en/documents/td > x-virtual-firmware-design-guide-rev-1.01.pdf > > Thanks > Min > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#87641): https://edk2.groups.io/g/devel/message/87641 Mute This Topic: https://groups.io/mt/89836301/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-