Re: [edk2-devel] [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib
Hi, Jiewen See comments inline. > -Original Message- > From: Yao, Jiewen > Sent: Tuesday, March 9, 2021 2:44 PM > To: Xu, Min M ; devel@edk2.groups.io > Cc: Justen, Jordan L ; Laszlo Ersek > ; Reiland, Doug > Subject: RE: [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib > > Hi > May I understand why we need this : PcdUseTdxAcceptPage ? > I think accepting page is always required. This PCD is for test purpose in early development. It doesn't make sense any more. It will be removed in next version. > > For PcdUseTdxEmulation, This is only for pre-production. > For real production, I don't think we need this one, right? This PCD is for test in SDV environment which emulate the Tdcall by calling vmcall. It will be removed in next version. > > > -Original Message- > > From: Xu, Min M > > Sent: Tuesday, March 9, 2021 2:13 PM > > To: devel@edk2.groups.io > > Cc: Xu, Min M ; Justen, Jordan L > > ; Laszlo Ersek ; Yao, > > Jiewen ; Reiland, Doug > > Subject: [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib > > > > TdxLib for OvmfPkg depends on the below PCDs > > - PcdUseTdxAcceptPage > > Indicate whether TdCall(AcceptPage) is used. > > - PcdUseTdxEmulation > > Indicate whether TdxEmulation is used. > > > > Cc: Jordan Justen > > Cc: Laszlo Ersek > > Cc: Jiewen Yao > > > > Signed-off-by: Min Xu > > Signed-off-by: Doug Reiland > > --- > > OvmfPkg/OvmfPkg.dec | 6 ++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index > > 4348bb45c64a..68b3fd86d516 100644 > > --- a/OvmfPkg/OvmfPkg.dec > > +++ b/OvmfPkg/OvmfPkg.dec > > @@ -317,6 +317,12 @@ > > > gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase|0x0|UINT32|0x42 > > > gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize|0x0|UINT32|0x43 > > > > + ## Indicate whether TdCall(AcceptPage) is used. > > + > gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxAcceptPage|TRUE|BOOLEAN|0x44 > > + ## Indicate whether TdxEmulation is used. > > + gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxEmulation|0x1|UINT32|0x45 > > + > > + > > [PcdsDynamic, PcdsDynamicEx] > >gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2 > > > > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLE > AN > > |0x10 > > -- > > 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72578): https://edk2.groups.io/g/devel/message/72578 Mute This Topic: https://groups.io/mt/81195557/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib
Hi May I understand why we need this : PcdUseTdxAcceptPage ? I think accepting page is always required. For PcdUseTdxEmulation, This is only for pre-production. For real production, I don't think we need this one, right? > -Original Message- > From: Xu, Min M > Sent: Tuesday, March 9, 2021 2:13 PM > To: devel@edk2.groups.io > Cc: Xu, Min M ; Justen, Jordan L > ; Laszlo Ersek ; Yao, Jiewen > ; Reiland, Doug > Subject: [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib > > TdxLib for OvmfPkg depends on the below PCDs > - PcdUseTdxAcceptPage > Indicate whether TdCall(AcceptPage) is used. > - PcdUseTdxEmulation > Indicate whether TdxEmulation is used. > > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Jiewen Yao > > Signed-off-by: Min Xu > Signed-off-by: Doug Reiland > --- > OvmfPkg/OvmfPkg.dec | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec > index 4348bb45c64a..68b3fd86d516 100644 > --- a/OvmfPkg/OvmfPkg.dec > +++ b/OvmfPkg/OvmfPkg.dec > @@ -317,6 +317,12 @@ >gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase|0x0|UINT32|0x42 >gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize|0x0|UINT32|0x43 > > + ## Indicate whether TdCall(AcceptPage) is used. > + gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxAcceptPage|TRUE|BOOLEAN|0x44 > + ## Indicate whether TdxEmulation is used. > + gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxEmulation|0x1|UINT32|0x45 > + > + > [PcdsDynamic, PcdsDynamicEx] >gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2 > > gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN > |0x10 > -- > 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72571): https://edk2.groups.io/g/devel/message/72571 Mute This Topic: https://groups.io/mt/81195557/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [PATCH V3 2/3] OvmfPkg: Add PCDs for TdxLib
TdxLib for OvmfPkg depends on the below PCDs - PcdUseTdxAcceptPage Indicate whether TdCall(AcceptPage) is used. - PcdUseTdxEmulation Indicate whether TdxEmulation is used. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Jiewen Yao Signed-off-by: Min Xu Signed-off-by: Doug Reiland --- OvmfPkg/OvmfPkg.dec | 6 ++ 1 file changed, 6 insertions(+) diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec index 4348bb45c64a..68b3fd86d516 100644 --- a/OvmfPkg/OvmfPkg.dec +++ b/OvmfPkg/OvmfPkg.dec @@ -317,6 +317,12 @@ gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase|0x0|UINT32|0x42 gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize|0x0|UINT32|0x43 + ## Indicate whether TdCall(AcceptPage) is used. + gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxAcceptPage|TRUE|BOOLEAN|0x44 + ## Indicate whether TdxEmulation is used. + gUefiOvmfPkgTokenSpaceGuid.PcdUseTdxEmulation|0x1|UINT32|0x45 + + [PcdsDynamic, PcdsDynamicEx] gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10 -- 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72567): https://edk2.groups.io/g/devel/message/72567 Mute This Topic: https://groups.io/mt/81195557/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-