From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.4896.1647478828416021525 for ; Wed, 16 Mar 2022 18:00:29 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([101.224.116.119]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 17 Mar 2022 09:00:19 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 101.224.116.119 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Brijesh Singh'" , "'Dong, Eric'" , "'Aktas, Erdem'" , "'Wu, Hao A'" , "'Wang, Jian J'" , "'James Bottomley'" , "'Yao, Jiewen'" , "'Kinney, Michael D'" , "'Ni, Ray'" , "'Kumar, Rahul1'" , "'Tom Lendacky'" , "'Liu, Zhiguang'" , "'Gerd Hoffmann'" References: <02a001d83820$789f62d0$69de2870$@byosoft.com.cn> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIFY4IDAwLzQ3XSBFbmFibGUgSW50ZWwgVERYIGluIE92bWZQa2cgKENvbmZpZy1BKQ==?= Date: Thu, 17 Mar 2022 09:00:22 +0800 Message-ID: <003401d8399a$6146b400$23d41c00$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJRDwiSV1EuublFZBUHcIW8jbAi2QHutZbMAY25ECGrtTLysA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Min: I suggest to add it into OvmfPkg/Library/PlatformInitLib/IntelTdx.c as th= e internal implementation.=20 Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Min Xu > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2022=E5=B9=B43=E6=9C=8815=E6=97=A5 = 15:12 > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io; Gao, Liming > =E6=8A=84=E9=80=81: 'Brijesh Singh' ; Dong, Eric > ; Aktas, Erdem ; Wu, Hao > A ; Wang, Jian J ; 'James > Bottomley' ; Yao, Jiewen ; > Kinney, Michael D ; Ni, Ray ; > Kumar, Rahul1 ; 'Tom Lendacky' > ; Liu, Zhiguang ; > 'Gerd Hoffmann' > =E4=B8=BB=E9=A2=98: Re: [edk2-devel] [PATCH V8 00/47] Enable Intel TDX in= OvmfPkg > (Config-A) >=20 > 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. >=20 > 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. >=20 > [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. >=20 > What's your suggestion? >=20 > [TDVF] > https://www.intel.com/content/dam/develop/external/us/en/documents/td > x-virtual-firmware-design-guide-rev-1.01.pdf >=20 > Thanks > Min >=20 >=20 >=20 >=20