Can OS call AcceptMemory protocol for those ranges that are not accepted? > -----Original Message----- > From: Xu, Min M <min.m...@intel.com> > Sent: Monday, October 10, 2022 11:08 AM > To: devel@edk2.groups.io; Dionna Amalie Glaze <dionnagl...@google.com>; > Gao, Liming <gaolim...@byosoft.com.cn> > Cc: Gao, Zhichao <zhichao....@intel.com>; Ni, Ray <ray...@intel.com>; > Aktas, Erdem <erdemak...@google.com>; 'Gerd Hoffmann' > <kra...@redhat.com>; 'James Bottomley' <j...@linux.ibm.com>; Yao, > Jiewen <jiewen....@intel.com>; 'Tom Lendacky' > <thomas.lenda...@amd.com>; Gao, Jiaqi <jiaqi....@intel.com>; Wang, Jian > J <jian.j.w...@intel.com>; Liu, Zhiguang <zhiguang....@intel.com>; Kinney, > Michael D <michael.d.kin...@intel.com>; Xu, Min M <min.m...@intel.com> > Subject: RE: [edk2-devel] 回复: [PATCH V4 00/10] Introduce Lazy-accept for > Tdx guest > > On October 10, 2022 10:28 AM, Gao Liming wrote: > > > > Min: > > I have no comments for new unaccepted resource type and unaccepted > gcd > > type. In fact, they are mapping to UEFI EfiUnacceptedMemoryType. > > > > For new protocol EfiMemoryAcceptProtocol, I see another patch serial > > https://edk2.groups.io/g/devel/message/94763 base on it to introduce > > ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL. Can these two > protocols > > be combined into one? > > > EfiMemoryAcceptProtocol looks like this: > typedef > EFI_STATUS > (EFIAPI *EDKII_ACCEPT_MEMORY)( > IN EDKII_MEMORY_ACCEPT_PROTOCOL *This, > IN EFI_PHYSICAL_ADDRESS StartAddress, > IN UINTN Size > ); > This protocol is called to accept the memory based on the input start address > and size. > > While ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL looks like below: > typedef > EFI_STATUS > (EFIAPI *BZ3987_DISABLE_ACCEPT_ALL_UNACCEPTED_MEMORY)( > IN BZ3987_ACCEPT_ALL_UNACCEPTED_MEMORY_PROTOCOL *This > ); > According to its description (https://edk2.groups.io/g/devel/message/94768) > this protocol is used to disable the behavior of accepting all unaccepted > memory. And it is designed to be called by the OS loader, not EDK2 itself. > > I am afraid these 2 protocols cannot be combined into one. > > Dionna what's your thought? > > Thanks > Min
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94870): https://edk2.groups.io/g/devel/message/94870 Mute This Topic: https://groups.io/mt/94229046/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-