Min, My understanding is there is a TDX driver in DXE phase that accepts memory using MP protocol. We only need to make sure there is sufficient memory for code running before that point. Is my understanding correct?
Thanks, Ray > -----Original Message----- > From: Xu, Min M <min.m...@intel.com> > Sent: Tuesday, August 30, 2022 2:01 PM > To: Ni, Ray <ray...@intel.com>; devel@edk2.groups.io; > thomas.lenda...@amd.com > Cc: Gao, Jiaqi <jiaqi....@intel.com>; Wang, Jian J <jian.j.w...@intel.com>; > Gao, Liming <gaolim...@byosoft.com.cn>; Bi, Dandan > <dandan...@intel.com>; Aktas, Erdem <erdemak...@google.com>; James > Bottomley <j...@linux.ibm.com>; Yao, Jiewen <jiewen....@intel.com>; > Gerd Hoffmann <kra...@redhat.com>; Xu, Min M <min.m...@intel.com> > Subject: RE: [edk2-devel] [PATCH V2 14/14] MdeModulePkg: Pool and page > functions accept memory when OOM occurs > > On August 30, 2022 8:29 AM, Ni, Ray wrote: > > Can you please explain more about this patch? > > I am a little nervous when seeing patches that change the fundamental > > memory services. > > > With the introduction of lazy-page-accept, the OUT_OF_RESOURCE may > occur in Memory Allocation logic (MdeModulePkg/Core/Dxe/Mem). To > address this issue, this patch update the > CoreAllocatePages()/CoreAllocatePool() so that when OUT_OF_RESOURCE is > triggered, we can accept more unaccepted-memory with the help of > EdkiiMemoryAcceptProtocol. > > Please refer to slide7-10 in > https://edk2.groups.io/g/devel/files/Designs/2021/0830/ . It describes how > the AcceptMemoryResource works. > > You can also refer to the discussion in > https://edk2.groups.io/g/devel/message/79971. > > Thanks > Min -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92959): https://edk2.groups.io/g/devel/message/92959 Mute This Topic: https://groups.io/mt/93285612/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-